diff m4/ls-mntd-fs.m4 @ 40146:62fbdb07f551

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'.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 00:21:17 +0100
parents cdd46dde7e34
children
line wrap: on
line diff
--- a/m4/ls-mntd-fs.m4	Sat Jan 26 23:40:44 2019 +0100
+++ b/m4/ls-mntd-fs.m4	Sun Jan 27 00:21:17 2019 +0100
@@ -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 @@
           [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