From 0697278232521db7f640f5d32ff3b707d2aaea6e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 8 Jul 2016 16:03:43 -0700 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h') diff --git a/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h index c4bf6547f0..0b7cd51af4 100644 --- a/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h +++ b/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h @@ -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 */ -- cgit v1.2.3