Skip to content

Commit

Permalink
OpenBSD CPU detection is the same as FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Aug 6, 2024
1 parent 0143a75 commit b721a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# elif defined(__has_include)
# if __has_include(<sys/auxv.h>)
# include <sys/auxv.h>
# ifdef __FreeBSD__
# if defined(__FreeBSD__) || defined(__OpenBSD__)
static unsigned long getauxval(unsigned long cap) {
unsigned long ret;
elf_aux_info(cap, &ret, sizeof(ret));
Expand Down Expand Up @@ -158,7 +158,7 @@ static unsigned long getauxval(unsigned long cap) {
# if defined(__has_include)
# if __has_include(<sys/auxv.h>)
# include <sys/auxv.h>
# ifdef __FreeBSD__
# if defined(__FreeBSD__) || defined(__OpenBSD__)
static unsigned long getauxval(unsigned long cap) {
unsigned long ret;
elf_aux_info(cap, &ret, sizeof(ret));
Expand Down

0 comments on commit b721a56

Please sign in to comment.