aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-numpy/numpy-1.17.0-musl.patch
blob: 16265786f8bcc710ef551cef77d83015c63e844c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
 ]