summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-07 22:43:43 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-08 00:37:00 +0200
commit2bdfd284abe28aa64b4751b506ef0be338567a88 (patch)
treef0448f8e37bfc4f1dba54ca873c8c9bf5ee8dad8 /buildtools/wafsamba
parent35a2d020a0c3b0ba638874bc0cdbd215c76bf606 (diff)
downloadsamba-2bdfd284abe28aa64b4751b506ef0be338567a88.tar.gz
samba-2bdfd284abe28aa64b4751b506ef0be338567a88.tar.bz2
samba-2bdfd284abe28aa64b4751b506ef0be338567a88.zip
build: try to fix large file support for AIX
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Jun 8 00:37:00 CEST 2012 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_conftests.py8
1 files changed, 8 insertions, 0 deletions
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