diff --git a/src/cpuid.h b/src/cpuid.h index 738e08c..c027389 100644 --- a/src/cpuid.h +++ b/src/cpuid.h @@ -67,7 +67,7 @@ # elif defined(__has_include) # if __has_include() # include -# ifdef __FreeBSD__ +# if defined(__FreeBSD__) || defined(__OpenBSD__) static unsigned long getauxval(unsigned long cap) { unsigned long ret; elf_aux_info(cap, &ret, sizeof(ret)); @@ -158,7 +158,7 @@ static unsigned long getauxval(unsigned long cap) { # if defined(__has_include) # if __has_include() # include -# ifdef __FreeBSD__ +# if defined(__FreeBSD__) || defined(__OpenBSD__) static unsigned long getauxval(unsigned long cap) { unsigned long ret; elf_aux_info(cap, &ret, sizeof(ret));