changeset 3529:981c106235e9

(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.
author Jim Meyering <jim@meyering.net>
date Sat, 29 Sep 2001 08:13:18 +0000
parents a85ecc69fc4b
children 89858aa25151
files m4/ls-mntd-fs.m4
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ls-mntd-fs.m4
+++ b/m4/ls-mntd-fs.m4
@@ -61,6 +61,9 @@
     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  */