diff options
author | Günther Deschner <gd@samba.org> | 2011-01-12 00:56:29 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-12 02:29:48 +0100 |
commit | e2a3ff184e7e6133b3536c5a40c9f05849b1f196 (patch) | |
tree | c0d9f548d4155faea64705fc5d7d80af5a76181e | |
parent | 4c8b9bee14ba9bcf4cc0a00985247fda3a29deef (diff) | |
download | samba-e2a3ff184e7e6133b3536c5a40c9f05849b1f196.tar.gz samba-e2a3ff184e7e6133b3536c5a40c9f05849b1f196.tar.bz2 samba-e2a3ff184e7e6133b3536c5a40c9f05849b1f196.zip |
s3-waf: add check for SO_PEERCRED.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 02:29:48 CET 2011 on sn-devel-104
-rw-r--r-- | source3/wscript | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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") + 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 |