From fa5fdb1a4e1033944f3fdb5584e950b7ed9ee632 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Jan 2011 10:34:45 +0100 Subject: s3-waf: finally enable large file support. 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 11:59:22 CET 2011 on sn-devel-104 --- source3/wscript | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ -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 + #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 -- cgit