From 2bdfd284abe28aa64b4751b506ef0be338567a88 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Thu, 7 Jun 2012 22:43:43 +0200 Subject: build: try to fix large file support for AIX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Jun 8 00:37:00 CEST 2012 on sn-devel-104 --- buildtools/wafsamba/samba_conftests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index 3605e33f08..0274f665a6 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 -- cgit