summaryrefslogtreecommitdiff
path: root/m4/ls-mntd-fs.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-29 08:13:18 +0000
committerJim Meyering <jim@meyering.net>2001-09-29 08:13:18 +0000
commit33e8cff715200e9d6cd25cccd538457732741529 (patch)
tree4ba6d3fcd2ac46108b958253213dc1ef146641b1 /m4/ls-mntd-fs.m4
parent23eb5e1acd21462dd282d90c1886e705c99699b2 (diff)
downloadcoreutils-33e8cff715200e9d6cd25cccd538457732741529.tar.xz
(jm_LIST_MOUNTED_FILESYSTEMS)
[one-argument getmntent function]): Include stdio.h before mntent.h. SunOS4.1.x needs it for the declaration of `FILE'. Patch by Volker Borchert.
Diffstat (limited to 'm4/ls-mntd-fs.m4')
-rw-r--r--m4/ls-mntd-fs.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/ls-mntd-fs.m4 b/m4/ls-mntd-fs.m4
index 969b25898..17d282fe9 100644
--- a/m4/ls-mntd-fs.m4
+++ b/m4/ls-mntd-fs.m4
@@ -61,6 +61,9 @@ if test $ac_cv_func_getmntent = yes; then
AC_MSG_CHECKING([for one-argument getmntent function])
AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
[AC_TRY_COMPILE([
+/* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
+#include <stdio.h>
+
#include <mntent.h>
#if !defined MOUNTED
# if defined _PATH_MOUNTED /* GNU libc */