summaryrefslogtreecommitdiff
path: root/numpy/lib/bscript
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-01-11 13:21:45 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-01-11 21:02:32 +0100
commitd64d62b76df62e8b20eea060db05ef23c472354d (patch)
tree24e692bd780d52d75211c455e66c539d84f7c83b /numpy/lib/bscript
parent4b4796a35dfafbc4e037a5f1cd4a26d6a2e17f41 (diff)
downloadnumpy-d64d62b76df62e8b20eea060db05ef23c472354d.tar.gz
BUG: fix large file support on 32 bit systems
On linux large file support must be enabled and ftello used to avoid overflows. The result must not be converted to a size_t, but a long long.
Diffstat (limited to 'numpy/lib/bscript')
-rw-r--r--numpy/lib/bscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/lib/bscript b/numpy/lib/bscript
index a9200d043..61debfe41 100644
--- a/numpy/lib/bscript
+++ b/numpy/lib/bscript
@@ -4,4 +4,8 @@ from bento.commands import hooks
def build(context):
context.tweak_extension("_compiled_base",
includes=["../core/include", "../core/include/numpy", "../core",
- "../core/src/private"])
+ "../core/src/private"],
+ defines=['_FILE_OFFSET_BITS=64',
+ '_LARGEFILE_SOURCE=1',
+ '_LARGEFILE64_SOURCE=1']
+ )