From: Björn Jacke Date: Thu, 7 Jun 2012 20:43:43 +0000 (+0200) Subject: build: try to fix large file support for AIX X-Git-Tag: tevent-0.9.16~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bdfd284abe28aa64b4751b506ef0be338567a88;p=thirdparty%2Fsamba.git build: try to fix large file support for AIX Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Jun 8 00:37:00 CEST 2012 on sn-devel-104 --- diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index 3605e33f08b..0274f665a68 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -113,6 +113,14 @@ def CHECK_LARGEFILE(conf, define='HAVE_LARGEFILE'): msg='Checking for -D_FILE_OFFSET_BITS=64'): conf.DEFINE('_FILE_OFFSET_BITS', 64) return True + + if conf.CHECK_CODE('return !(sizeof(off_t) >= 8)', + define, + execute=True, + cflags='-D_LARGE_FILES', + msg='Checking for -D_LARGE_FILES'): + conf.DEFINE('_LARGE_FILES', 1) + return True return False