]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
statfs might be defined in sys/mount.h.
authorDarren Tucker <dtucker@dtucker.net>
Sat, 2 Nov 2019 13:09:21 +0000 (00:09 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 2 Nov 2019 13:09:21 +0000 (00:09 +1100)
eg on old NetBSDs.

configure.ac

index bc28d07481e7348c5d0d350c766407b2c2e75c35..70019e03bbc18a9ba995eade9efd77303df1b164 100644 (file)
@@ -3817,6 +3817,7 @@ AC_CHECK_TYPES([fsblkcnt_t, fsfilcnt_t], , , [
 ])
 
 AC_CHECK_MEMBERS([struct statfs.f_files, struct statfs.f_flags], [], [], [[
+#include <sys/param.h>
 #include <sys/types.h>
 #ifdef HAVE_SYS_BITYPES_H
 #include <sys/bitypes.h>
@@ -3830,6 +3831,9 @@ AC_CHECK_MEMBERS([struct statfs.f_files, struct statfs.f_flags], [], [], [[
 #ifdef HAVE_SYS_VFS_H
 #include <sys/vfs.h>
 #endif
+#ifdef HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
 ]])