diff options
author | Günther Deschner <gd@samba.org> | 2011-02-16 17:03:24 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-16 18:39:35 +0100 |
commit | 3b3f13a7fb6816563ae1334e821ea37f9175b16e (patch) | |
tree | 3253b8b37d3df0ff9c9b662cd023c5d78c8d404d /source3/wscript | |
parent | 8701b0d6454f846472a186f1e44dd4a9368631f4 (diff) | |
download | samba-3b3f13a7fb6816563ae1334e821ea37f9175b16e.tar.gz samba-3b3f13a7fb6816563ae1334e821ea37f9175b16e.tar.bz2 samba-3b3f13a7fb6816563ae1334e821ea37f9175b16e.zip |
s3-waf: add check for "struct flock64".
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index d076596f5b..cab8f81a89 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1022,6 +1022,34 @@ int i; i = PAM_RADIO_TYPE; execute=True, msg='Checking whether fcntl64 locks are broken') + if not conf.CONFIG_SET('HAVE_BROKEN_FCNTL64_LOCKS'): + conf.CHECK_CODE(''' +#if defined(HAVE_UNISTD_H) +#include <unistd.h> +#endif +#include <stdio.h> +#include <stdlib.h> + +#ifdef HAVE_FCNTL_H +#include <fcntl.h> +#endif + +#ifdef HAVE_SYS_FCNTL_H +#include <sys/fcntl.h> +#endif +main() { struct flock64 fl64; +#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64) +exit(0); +#else +exit(1); +#endif +} +''', + 'HAVE_STRUCT_FLOCK64', + addmain=False, + execute=True, + msg="Checking whether the flock64 struct is available") + default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin vfs_default |