summaryrefslogtreecommitdiff
path: root/numpy/random/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r--numpy/random/setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py
index c7e792f2f..55cca69da 100644
--- a/numpy/random/setup.py
+++ b/numpy/random/setup.py
@@ -30,7 +30,11 @@ def configuration(parent_package='',top_path=None):
ext.libraries.extend(libs)
return None
- defs = []
+ # enable unix large file support on 32 bit systems
+ # (64 bit off_t, lseek -> lseek64 etc.)
+ defs = [('_FILE_OFFSET_BITS', '64'),
+ ('_LARGEFILE_SOURCE', '1'),
+ ('_LARGEFILE64_SOURCE', '1')]
if needs_mingw_ftime_workaround():
defs.append(("NPY_NEEDS_MINGW_TIME_WORKAROUND", None))