From 382c18c20cdcec45b5d21ff25b4a5e0df91a68c4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 3 Nov 2019 00:09:21 +1100 Subject: statfs might be defined in sys/mount.h. eg on old NetBSDs. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index bc28d0748..70019e03b 100644 --- a/configure.ac +++ b/configure.ac @@ -3817,6 +3817,7 @@ AC_CHECK_TYPES([fsblkcnt_t, fsfilcnt_t], , , [ ]) AC_CHECK_MEMBERS([struct statfs.f_files, struct statfs.f_flags], [], [], [[ +#include #include #ifdef HAVE_SYS_BITYPES_H #include @@ -3830,6 +3831,9 @@ AC_CHECK_MEMBERS([struct statfs.f_files, struct statfs.f_flags], [], [], [[ #ifdef HAVE_SYS_VFS_H #include #endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif ]]) -- cgit v1.2.3