projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
[gnulib.git]
/
m4
/
ls-mntd-fs.m4
diff --git
a/m4/ls-mntd-fs.m4
b/m4/ls-mntd-fs.m4
index
8de592e
..
21ac4e7
100644
(file)
--- a/
m4/ls-mntd-fs.m4
+++ b/
m4/ls-mntd-fs.m4
@@
-1,4
+1,4
@@
-#serial 2
3
+#serial 2
6
# How to list mounted file systems.
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software
# How to list mounted file systems.
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software
@@
-141,7
+141,8
@@
if test $ac_cv_func_getmntent = yes; then
# endif
#endif
],
# endif
#endif
],
- [ struct mntent *mnt = 0; char *table = MOUNTED; ],
+ [ struct mntent *mnt = 0; char *table = MOUNTED;
+ if (sizeof mnt && sizeof table) return 0;],
fu_cv_sys_mounted_getmntent1=yes,
fu_cv_sys_mounted_getmntent1=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
fu_cv_sys_mounted_getmntent1=yes,
fu_cv_sys_mounted_getmntent1=no)])
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
@@
-237,6
+238,9
@@
if test -z "$ac_list_mounted_fs"; then
AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo2,
[
AC_TRY_COMPILE([
AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo2,
[
AC_TRY_COMPILE([
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
#include <sys/types.h>
#if HAVE_SYS_MOUNT_H
# include <sys/mount.h>
#include <sys/types.h>
#if HAVE_SYS_MOUNT_H
# include <sys/mount.h>