Skip to content

Commit

Permalink
add linux guard per numpy#21386
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgurney committed Apr 25, 2022
1 parent 53b3a42 commit a8663f6
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 @@ -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

Expand Down

0 comments on commit a8663f6

Please sign in to comment.