diff options
author | John-Mark Gurney <jmg@funkthat.com> | 2022-04-25 15:18:15 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2022-05-04 18:26:13 -0600 |
commit | a7ac67d87a8b554deca671315b5a8f591d8d51ab (patch) | |
tree | c8fd60a35fe6d3a30ab92d89e0bc01b6fcfeab0f | |
parent | 65bbf0c8ec4704145868c06008b58460aa8ceadc (diff) | |
download | numpy-a7ac67d87a8b554deca671315b5a8f591d8d51ab.tar.gz |
BUG: add linux guard per #21386
-rw-r--r-- | numpy/core/src/common/npy_cpu_features.c.src | 2 |
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 a2383c45f..0bdc046b7 100644 --- a/numpy/core/src/common/npy_cpu_features.c.src +++ b/numpy/core/src/common/npy_cpu_features.c.src @@ -530,7 +530,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 |