File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -356,7 +356,11 @@ check_include_files(grp.h HAVE_GRP_H)
356356check_include_files (ieeefp.h HAVE_IEEEFP_H )
357357check_include_files (inttypes.h HAVE_INTTYPES_H ) # libffi and cpython
358358check_include_files (io.h HAVE_IO_H )
359- check_include_files (langinfo.h HAVE_LANGINFO_H )
359+ if (ANDROID )
360+ set (HAVE_LANGINFO_H 0) # Android cann't link functions from langinfo.h
361+ else ()
362+ check_include_files (langinfo.h HAVE_LANGINFO_H )
363+ endif ()
360364check_include_files (libintl.h HAVE_LIBINTL_H )
361365check_include_files (libutil.h HAVE_LIBUTIL_H )
362366check_include_files (linux /tipc.h HAVE_LINUX_TIPC_H )
@@ -532,7 +536,7 @@ find_library(HAVE_LIBTERMCAP termcap)
532536set (LIBUTIL_LIBRARIES )
533537set (LIBUTIL_EXPECTED 1)
534538
535- if (CMAKE_SYSTEM MATCHES "VxWorks\\ -7$" )
539+ if (ANDROID OR CMAKE_SYSTEM MATCHES "VxWorks\\ -7$" )
536540 set (LIBUTIL_EXPECTED 0)
537541 set (HAVE_LIBUTIL 0)
538542endif ()
You can’t perform that action at this time.
0 commit comments