Skip to content

Commit e00e045

Browse files
authored
Fix build on FreeBSD/powerpc*
All the tests pass.
1 parent c74a85d commit e00e045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl_ppc_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "cpu_features_macros.h"
1616

1717
#ifdef CPU_FEATURES_ARCH_PPC
18-
#ifdef CPU_FEATURES_OS_LINUX
18+
#if defined(CPU_FEATURES_OS_LINUX) || defined(CPU_FEATURES_OS_FREEBSD)
1919

2020
#include "cpuinfo_ppc.h"
2121

@@ -159,5 +159,5 @@ PPCPlatformStrings GetPPCPlatformStrings(void) {
159159
return strings;
160160
}
161161

162-
#endif // CPU_FEATURES_OS_LINUX
162+
#endif // CPU_FEATURES_OS_LINUX || CPU_FEATURES_OS_FREEBSD
163163
#endif // CPU_FEATURES_ARCH_PPC

0 commit comments

Comments
 (0)