summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-01-27 00:21:17 +0100
committerBruno Haible <bruno@clisp.org>2019-01-27 00:21:17 +0100
commita3d1c7849936e481ae10dea5312a36a448a5d5bf (patch)
tree93851bf05208256b2a656b5548a55876ed1cd96e /m4
parent29c58de5bde12dd975966479c495e9516893125d (diff)
downloadgnulib-a3d1c7849936e481ae10dea5312a36a448a5d5bf.tar.gz
mountlist: Use Linux code on Android.
* lib/mountlist.c (setmntent, endmntent): Define fallbacks. (unescape_tab, read_file_system_list): Enable Linux code on Android as well. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent and endmntent. * modules/mountlist (Depends-on): Add 'getline'.
Diffstat (limited to 'm4')
-rw-r--r--m4/ls-mntd-fs.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4
index ba38439271..05474c2ddd 100644
--- a/m4/ls-mntd-fs.m4
+++ b/m4/ls-mntd-fs.m4
@@ -1,4 +1,4 @@
-# serial 37
+# serial 38
# How to list mounted file systems.
# Copyright (C) 1998-2004, 2006, 2009-2019 Free Software Foundation, Inc.
@@ -123,7 +123,7 @@ $ac_includes_default
[Define if there is a function named getmntent for reading the list
of mounted file systems, and that function takes a single argument.
(4.3BSD, SunOS, HP-UX, Irix)])
- AC_CHECK_FUNCS([hasmntopt])
+ AC_CHECK_FUNCS([setmntent endmntent hasmntopt])
fi
fi