aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-05-08 09:56:05 -0400
committerSteve Dickson <steved@redhat.com>2020-05-08 10:07:19 -0400
commit281244d2aacade273e4ac1f64ed8aff77a228b77 (patch)
tree1d0c23400f8019aaf26a4fb6b9768ad043f96c05
parent7cac7cd896dca8ad60cdc9672e727dd62dc58c7c (diff)
downloadnfs-utils-281244d2aacade273e4ac1f64ed8aff77a228b77.tar.gz
Fix autoconf probe for 'struct nfs_filehandle'
It was failing because fcntl.h is not one of the standard includes. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 00b32800..df88e58f 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