summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@funkthat.com>2022-04-25 15:18:15 -0700
committerJohn-Mark Gurney <jmg@funkthat.com>2022-04-25 16:26:13 -0700
commit96bafc9142b4c0671d8dc5b5c2e2dac841d9a789 (patch)
treef21f25df6be9bfd7091655a79d61c9173c926cf2
parent53b3a42c13b2c9755f88d92a35a3786ca0f0deb4 (diff)
downloadnumpy-96bafc9142b4c0671d8dc5b5c2e2dac841d9a789.tar.gz
BUG: add linux guard per #21386
-rw-r--r--numpy/core/src/common/npy_cpu_features.c.src2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/src/common/npy_cpu_features.c.src b/numpy/core/src/common/npy_cpu_features.c.src
index ff4f9f60a..602eda57a 100644
--- a/numpy/core/src/common/npy_cpu_features.c.src
+++ b/numpy/core/src/common/npy_cpu_features.c.src
@@ -579,7 +579,9 @@ npy__cpu_init_features_arm8(void)
#include <stdio.h>
#include "npy_cpuinfo_parser.h"
+#if defined(__linux__)
__attribute__((weak)) unsigned long getauxval(unsigned long); // linker should handle it
+#endif
#ifdef __FreeBSD__
__attribute__((weak)) int elf_aux_info(int, void *, int); // linker should handle it