diff options
-rw-r--r-- | source3/wscript | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript index 1b7f0e7745..1f4e7c37cf 100644 --- a/source3/wscript +++ b/source3/wscript @@ -442,13 +442,12 @@ return acl_get_perm_np(permset_d, perm); conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True) conf.CHECK_CODE(''' - #include <sys/types.h> - #include <sys/socket.h> struct ucred cred; socklen_t cred_len; int ret = getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len);''', 'HAVE_PEERCRED', - msg="Checking whether we can use SO_PEERCRED to get socket credentials") + msg="Checking whether we can use SO_PEERCRED to get socket credentials", + headers='sys/types.h sys/socket.h') conf.CHECK_CODE(''' #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8))) |