Skip to content

Commit 79a8d4a

Browse files
committed
Make it buildable
1 parent ec5fb7d commit 79a8d4a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

cmake/ConfigureChecks.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ check_include_files(grp.h HAVE_GRP_H)
356356
check_include_files(ieeefp.h HAVE_IEEEFP_H)
357357
check_include_files(inttypes.h HAVE_INTTYPES_H) # libffi and cpython
358358
check_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()
360364
check_include_files(libintl.h HAVE_LIBINTL_H)
361365
check_include_files(libutil.h HAVE_LIBUTIL_H)
362366
check_include_files(linux/tipc.h HAVE_LINUX_TIPC_H)
@@ -532,7 +536,7 @@ find_library(HAVE_LIBTERMCAP termcap)
532536
set(LIBUTIL_LIBRARIES )
533537
set(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)
538542
endif()

0 commit comments

Comments
 (0)