]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/configure
Do not use libiberty's getpagesize on Android
[thirdparty/gcc.git] / libiberty / configure
index da2df4ec740b30e4a0c929bab1ee3b994d40ef4d..a40ae7087977b265a7bdd463f681d2c9789b100e 100755 (executable)
@@ -6224,6 +6224,12 @@ if test -z "${setobjs}"; then
 
   case "${host}" in
 
+  *-*-android*)
+    # On android, getpagesize is defined in unistd.h as a static inline
+    # function, which AC_CHECK_FUNCS does not handle properly.
+    ac_cv_func_getpagesize=yes
+    ;;
+
   *-*-mingw32*)
     # Under mingw32, sys_nerr and sys_errlist exist, but they are
     # macros, so the test below won't find them.