From e2a3ff184e7e6133b3536c5a40c9f05849b1f196 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Jan 2011 00:56:29 +0100 Subject: s3-waf: add check for SO_PEERCRED. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Wed Jan 12 02:29:48 CET 2011 on sn-devel-104 --- source3/wscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index a0f0d58286..3a3116912c 100644 --- a/source3/wscript +++ b/source3/wscript @@ -374,6 +374,15 @@ return acl_get_perm_np(permset_d, perm); msg="Checking whether Linux readahead is available") conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True) + conf.CHECK_CODE(''' + #include + #include ], + 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") + default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam pdb_ldap auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin auth_netlogond vfs_default -- cgit