]> code.ossystems Code Review - openembedded-core.git/commitdiff
python{3}-numpy: Predefine of sizeof off_t on mips/mipsel/ppc
authorKhem Raj <raj.khem@gmail.com>
Fri, 8 Jul 2016 23:03:43 +0000 (16:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2016 09:24:49 +0000 (10:24 +0100)
Fixes below errors as seen on musl

| In file included from numpy/core/include/numpy/ndarraytypes.h:4:0,
|                  from numpy/core/include/numpy/ndarrayobject.h:18,
|                  from numpy/core/include/numpy/arrayobject.h:4,
|                  from numpy/core/src/multiarray/compiled_base.c:7:
| numpy/core/include/numpy/npy_common.h:167:10: error: #error Unsupported size for type off_t
|          #error Unsupported size for type off_t
|           ^~~~~
| In file included from numpy/core/include/numpy/ndarraytypes.h:4:0,
|                  from numpy/core/include/numpy/ndarrayobject.h:18,
|                  from numpy/core/include/numpy/arrayobject.h:4,
|                  from numpy/core/src/multiarray/compiled_base.c:7:
| numpy/core/include/numpy/npy_common.h:167:10: error: #error Unsupported size for type off_t
|          #error Unsupported size for type off_t
|           ^~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h
meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h
meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h

index 05d2b8b949a0c6c0a3646b9c9997e00dbfb9d430..4c465c216cb30118ab46aa99302376fd229e1d0b 100644 (file)
@@ -12,6 +12,7 @@
 #define NPY_SIZEOF_PY_INTPTR_T 4
 #define NPY_SIZEOF_PY_LONG_LONG 8
 #define NPY_SIZEOF_LONGLONG 8
+#define NPY_SIZEOF_OFF_T 8
 #define NPY_NO_SMP 0
 #define NPY_HAVE_DECL_ISNAN
 #define NPY_HAVE_DECL_ISINF
index c4bf6547f002a1a6c6f3ff5112f449586fb12ee9..0b7cd51af46deb35d0921e27331d5161b9303e06 100644 (file)
@@ -13,5 +13,6 @@
 
 #define NPY_SIZEOF_LONGLONG 8 
 #define NPY_SIZEOF_PY_LONG_LONG 8 
+#define NPY_SIZEOF_OFF_T 8
 /* #define CHAR_BIT 8 */
 
index 0f45d5bd44b614a11c4f9c9887ac61fd0ad5c0a8..6e7262ad91796d47e4234bab1358b0dcce628e5f 100644 (file)
@@ -12,6 +12,7 @@
 #define NPY_SIZEOF_PY_INTPTR_T 4
 #define NPY_SIZEOF_PY_LONG_LONG 8
 #define NPY_SIZEOF_LONGLONG 8
+#define NPY_SIZEOF_OFF_T 8
 #define NPY_NO_SMP 0
 #define NPY_HAVE_DECL_ISNAN
 #define NPY_HAVE_DECL_ISINF