1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix compilation on Android SDK 20 and earlier

* configure.ac (gl_PREREQ_NPROC): Disable ac_cv_header_mntent_h
if on Android and setmntent is not declared.
This commit is contained in:
Po Lu 2025-11-05 11:10:11 +08:00
parent 240355949e
commit e54fd7c012

View file

@ -1599,6 +1599,12 @@ AC_DEFUN([gl_CRYPTO_CHECK])
# Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
# as we don't use them.
AC_DEFUN([gl_FCNTL_O_FLAGS])
# Disable nproc.c's usage of mntent.h if setmntent is undefined, as on
# Android SDK <= 20.
AC_DEFUN([gl_PREREQ_NPROC],
[AS_IF([test "$opsys" = "android"],
[AC_CHECK_DECL([setmntent], [], [ac_cv_header_mntent_h=no],
[[#include <mntent.h>]])])]m4_defn([gl_PREREQ_NPROC]))
# Avoid gnulib's test for pthread_sigmask.
funcs=
for func in $ac_func_list; do