mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h
|
|
index 44cdffd..f120094 100644
|
|
--- a/numpy/core/include/numpy/npy_endian.h
|
|
+++ b/numpy/core/include/numpy/npy_endian.h
|
|
@@ -12,7 +12,7 @@
|
|
#if defined(NPY_HAVE_ENDIAN_H)
|
|
#include <endian.h>
|
|
#elif defined(NPY_HAVE_SYS_ENDIAN_H)
|
|
- #include <sys/endian.h>
|
|
+ #include <bsd/sys/endian.h>
|
|
#endif
|
|
|
|
#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
|
|
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
|
|
index 3385027..976e782 100644
|
|
--- a/numpy/core/setup.py
|
|
+++ b/numpy/core/setup.py
|
|
@@ -290,7 +290,7 @@ def check_types(config_cmd, ext, build_dir):
|
|
if res:
|
|
private_defines.append(('HAVE_ENDIAN_H', 1))
|
|
public_defines.append(('NPY_HAVE_ENDIAN_H', 1))
|
|
- res = config_cmd.check_header("sys/endian.h")
|
|
+ res = config_cmd.check_header("bsd/sys/endian.h")
|
|
if res:
|
|
private_defines.append(('HAVE_SYS_ENDIAN_H', 1))
|
|
public_defines.append(('NPY_HAVE_SYS_ENDIAN_H', 1))
|
|
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
|
|
index 307fab3..916a216 100644
|
|
--- a/numpy/core/setup_common.py
|
|
+++ b/numpy/core/setup_common.py
|
|
@@ -120,7 +120,7 @@ OPTIONAL_HEADERS = [
|
|
"emmintrin.h", # SSE2
|
|
"immintrin.h", # AVX
|
|
"features.h", # for glibc version linux
|
|
- "xlocale.h", # see GH#8367
|
|
+ "locale.h", # see GH#8367
|
|
"dlfcn.h", # dladdr
|
|
"sys/mman.h", #madvise
|
|
]
|