summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-09-16 12:35:58 +0200
committerGünther Deschner <gd@samba.org>2011-09-16 14:14:48 +0200
commit3a07fe5b36353d01eb87694fa722d7d2113ee197 (patch)
treea1459dd8a29a1af598fe7b0e804e1c3c4a83528a /source3
parente952c693174268077921ca61b68d7ff076dd4983 (diff)
downloadsamba-3a07fe5b36353d01eb87694fa722d7d2113ee197.tar.gz
samba-3a07fe5b36353d01eb87694fa722d7d2113ee197.tar.bz2
samba-3a07fe5b36353d01eb87694fa722d7d2113ee197.zip
s3-waf: finally make SO_PEERCRED configure check work with stricter CFLAGS.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Sep 16 14:14:48 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript5
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)))