File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ my_crc32_t crc32c_aarch64_available(void)
33
33
}
34
34
# else
35
35
# include <sys/auxv.h>
36
- # ifdef __FreeBSD__
36
+ # if defined( __FreeBSD__ ) || defined( __OpenBSD__ )
37
37
static unsigned long getauxval (unsigned int key )
38
38
{
39
39
unsigned long val ;
Original file line number Diff line number Diff line change @@ -455,10 +455,12 @@ static int arch_ppc_probe(void) {
455
455
456
456
return arch_ppc_crc32;
457
457
}
458
- # elif defined __FreeBSD__
459
- # include < machine/cpu.h>
458
+ # elif defined(__FreeBSD__) || defined(__OpenBSD__)
460
459
# include < sys/auxv.h>
461
- # include < sys/elf_common.h>
460
+ # ifdef __FreeBSD__
461
+ # include < machine/cpu.h>
462
+ # include < sys/elf_common.h>
463
+ # endif
462
464
static int arch_ppc_probe (void ) {
463
465
unsigned long cpufeatures;
464
466
arch_ppc_crc32 = 0 ;
@@ -470,12 +472,12 @@ static int arch_ppc_probe(void) {
470
472
471
473
return arch_ppc_crc32;
472
474
}
473
- # elif defined(_AIX) || defined(__OpenBSD__)
475
+ # elif defined(_AIX)
474
476
static int arch_ppc_probe (void ) {
475
477
arch_ppc_crc32 = 0 ;
476
478
477
479
# if defined(__powerpc64__)
478
- // AIX 7.1+/OpenBSD has vector crypto features on all POWER 8+
480
+ // AIX 7.1+ has vector crypto features on all POWER 8+
479
481
arch_ppc_crc32 = 1 ;
480
482
# endif /* __powerpc64__ */
481
483
You can’t perform that action at this time.
0 commit comments