From: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx> It was failing because fcntl.h is not one of the standard includes. Signed-off-by: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx> --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 00b32800c526..df88e58fd0d4 100644 --- a/configure.ac +++ b/configure.ac @@ -531,7 +531,12 @@ AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM -AC_CHECK_TYPES([struct file_handle]) +AC_CHECK_TYPES([struct file_handle], [], [], [[ + #define _GNU_SOURCE + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> + ]]) dnl ************************************************************* dnl Check for functions -- 2.25.2