diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-07-08 16:03:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-20 10:28:44 +0100 |
commit | fa0b782be85afc9e404f26a67b13c5bbbf9f74af (patch) | |
tree | a1f1fe0e6b0e4f7f3c688f8bd8c09d3511140eee /meta | |
parent | d55b7650d305ffad953dd36595ee6b9aa8df5a72 (diff) | |
download | poky-fa0b782be85afc9e404f26a67b13c5bbbf9f74af.tar.gz |
python{3}-numpy: Predefine of sizeof off_t on mips/mipsel/ppc
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
| ^~~~~
(From OE-Core rev: 6d8cc72e7f83b9819ff1bbdb72ca61f98de403a4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
3 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h b/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h index 05d2b8b949..4c465c216c 100644 --- a/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h +++ b/meta/recipes-devtools/python-numpy/files/mips/_numpyconfig.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define NPY_SIZEOF_PY_INTPTR_T 4 | 12 | #define NPY_SIZEOF_PY_INTPTR_T 4 |
13 | #define NPY_SIZEOF_PY_LONG_LONG 8 | 13 | #define NPY_SIZEOF_PY_LONG_LONG 8 |
14 | #define NPY_SIZEOF_LONGLONG 8 | 14 | #define NPY_SIZEOF_LONGLONG 8 |
15 | #define NPY_SIZEOF_OFF_T 8 | ||
15 | #define NPY_NO_SMP 0 | 16 | #define NPY_NO_SMP 0 |
16 | #define NPY_HAVE_DECL_ISNAN | 17 | #define NPY_HAVE_DECL_ISNAN |
17 | #define NPY_HAVE_DECL_ISINF | 18 | #define NPY_HAVE_DECL_ISINF |
diff --git a/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h b/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h index c4bf6547f0..0b7cd51af4 100644 --- a/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h +++ b/meta/recipes-devtools/python-numpy/files/mipsel/numpyconfig.h | |||
@@ -13,5 +13,6 @@ | |||
13 | 13 | ||
14 | #define NPY_SIZEOF_LONGLONG 8 | 14 | #define NPY_SIZEOF_LONGLONG 8 |
15 | #define NPY_SIZEOF_PY_LONG_LONG 8 | 15 | #define NPY_SIZEOF_PY_LONG_LONG 8 |
16 | #define NPY_SIZEOF_OFF_T 8 | ||
16 | /* #define CHAR_BIT 8 */ | 17 | /* #define CHAR_BIT 8 */ |
17 | 18 | ||
diff --git a/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h b/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h index 0f45d5bd44..6e7262ad91 100644 --- a/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h +++ b/meta/recipes-devtools/python-numpy/files/powerpc/_numpyconfig.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define NPY_SIZEOF_PY_INTPTR_T 4 | 12 | #define NPY_SIZEOF_PY_INTPTR_T 4 |
13 | #define NPY_SIZEOF_PY_LONG_LONG 8 | 13 | #define NPY_SIZEOF_PY_LONG_LONG 8 |
14 | #define NPY_SIZEOF_LONGLONG 8 | 14 | #define NPY_SIZEOF_LONGLONG 8 |
15 | #define NPY_SIZEOF_OFF_T 8 | ||
15 | #define NPY_NO_SMP 0 | 16 | #define NPY_NO_SMP 0 |
16 | #define NPY_HAVE_DECL_ISNAN | 17 | #define NPY_HAVE_DECL_ISNAN |
17 | #define NPY_HAVE_DECL_ISINF | 18 | #define NPY_HAVE_DECL_ISINF |