(jm_LIST_MOUNTED_FILESYSTEMS)
authorJim Meyering <jim@meyering.net>
Sat, 29 Sep 2001 08:13:18 +0000 (08:13 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 Sep 2001 08:13:18 +0000 (08:13 +0000)
[one-argument getmntent function]): Include stdio.h before mntent.h.
SunOS4.1.x needs it for the declaration of `FILE'.
Patch by Volker Borchert.

m4/ls-mntd-fs.m4

index 969b258..17d282f 100644 (file)
@@ -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  */