Skip to content

Commit

Permalink
BUG: add linux guard per numpy#21386
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgurney authored and charris committed May 5, 2022
1 parent 65bbf0c commit a7ac67d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/core/src/common/npy_cpu_features.c.src
Expand Up @@ -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

Expand Down

0 comments on commit a7ac67d

Please sign in to comment.