diff options
author | Günther Deschner <gd@samba.org> | 2011-01-12 10:34:45 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-12 11:59:22 +0100 |
commit | fa5fdb1a4e1033944f3fdb5584e950b7ed9ee632 (patch) | |
tree | 433d976e06d65002ee799ab4bc7ee1b257f3d160 /source3 | |
parent | 35f08a2958455dfe747d068fad9b383d07c9e9eb (diff) | |
download | samba-fa5fdb1a4e1033944f3fdb5584e950b7ed9ee632.tar.gz samba-fa5fdb1a4e1033944f3fdb5584e950b7ed9ee632.tar.bz2 samba-fa5fdb1a4e1033944f3fdb5584e950b7ed9ee632.zip |
s3-waf: finally enable large file support.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 11:59:22 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 3a3116912c..fc1cc1df86 100644 --- a/source3/wscript +++ b/source3/wscript @@ -116,6 +116,9 @@ def configure(conf): conf.CHECK_DECLS('fdatasync', reverse=True) conf.CHECK_DECLS('readahead', reverse=True, headers='fcntl.h') + if conf.CONFIG_SET('HAVE_LONG_LONG'): + conf.DEFINE('HAVE_LONGLONG', 1) + if conf.CHECK_CODE(''' #if defined(HAVE_UNISTD_H) #include <unistd.h> @@ -383,6 +386,16 @@ return acl_get_perm_np(permset_d, perm); 'HAVE_PEERCRED', msg="Checking whether we can use SO_PEERCRED to get socket credentials") + conf.CHECK_CODE(''' + #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8))) + #include <sys/types.h> + #else + __COMPILE_ERROR_ + #endif + int i;''', + 'HAVE_EXPLICIT_LARGEFILE_SUPPORT', + msg="Checking whether large file support can be enabled") + 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 |