summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liboil/liboilcpu-powerpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/liboil/liboilcpu-powerpc.c b/liboil/liboilcpu-powerpc.c
index d29d0e1..300ab1d 100644
--- a/liboil/liboilcpu-powerpc.c
+++ b/liboil/liboilcpu-powerpc.c
@@ -49,6 +49,11 @@
#endif
+#if defined(__APPLE__)
+#include <sys/types.h>
+#include <sys/sysctl.h>
+#endif
+
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <sys/sysctl.h>