* configure.ac: Check for statx using gl_CHECK_FUNCS_ANDROID since it is
hidden for Android API level <= 30.
* m4/jm-macros.m4 (coreutils_MACROS): Check for syncfs using
gl_CHECK_FUNCS_ANDROID since it is hidden for Android API level <= 28.
AC_SUBST([LIB_NVPAIR])
fi
-# glibc >= 2.28 and linux kernel >= 4.11
-AC_CHECK_FUNCS([statx])
+# glibc >= 2.28 and linux kernel >= 4.11, Android API level 30.
+gl_CHECK_FUNCS_ANDROID([statx], [[#include <sys/stat.h>]])
# SCO-ODT-3.0 is reported to need -los to link programs using initgroups
AC_CHECK_FUNCS([initgroups])
sethostname
siginterrupt
sync
- syncfs
sysinfo
tcgetpgrp
])
+ # Android API level 30.
+ gl_CHECK_FUNCS_ANDROID([syncfs], [[#include <unistd.h>]])
+
# These checks are for Interix, to avoid its getgr* functions, in favor
# of these replacements. The replacement functions are much more efficient
# because they do not query the domain controller for user information