aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/darwin.h')
-rw-r--r--src/include/port/darwin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/port/darwin.h b/src/include/port/darwin.h
index 597b998a017..5d5072aa550 100644
--- a/src/include/port/darwin.h
+++ b/src/include/port/darwin.h
@@ -1,5 +1,10 @@
+#define __darwin__ 1
+
+#if defined(__ppc__)
#define HAS_TEST_AND_SET
-#if defined(__powerpc__)
+#endif
+
+#if defined(__ppc__)
typedef unsigned int slock_t;
#else
typedef unsigned char slock_t;