From: Darren Tucker Date: Sat, 2 Nov 2019 13:09:21 +0000 (+1100) Subject: statfs might be defined in sys/mount.h. X-Git-Tag: V_8_2_P1~350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382c18c20cdcec45b5d21ff25b4a5e0df91a68c4;p=thirdparty%2Fopenssh-portable.git statfs might be defined in sys/mount.h. eg on old NetBSDs. --- 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 ]])