summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-10-26 12:18:23 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-10-26 12:24:42 +0100
commit76fc3e7df95779b2a67cf40210585cc1bb776591 (patch)
tree181131d22d85c167b34df4b2c1b8d5cfef56b4c3
parent0332a2d8db6bd55b1d7e96c33ba4dd4f858d273d (diff)
downloadnumpy-76fc3e7df95779b2a67cf40210585cc1bb776591.tar.gz
BUG: fix build in c99 mode
The definition of off_t is located in sys/types.h and is not pulled by other files when compiling in c99 mode instead of the default gnu89. Closes gh-5231
-rw-r--r--numpy/core/include/numpy/npy_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h
index ad7c72f40..92b03d20c 100644
--- a/numpy/core/include/numpy/npy_common.h
+++ b/numpy/core/include/numpy/npy_common.h
@@ -133,6 +133,7 @@ extern long long __cdecl _ftelli64(FILE *);
#else
#define npy_ftell ftell
#endif
+ #include <sys/types.h>
#define npy_lseek lseek
#define npy_off_t off_t