aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/bsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/bsd.h')
-rw-r--r--src/include/port/bsd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/port/bsd.h b/src/include/port/bsd.h
index 4e754e77dec..cfd0d2811bd 100644
--- a/src/include/port/bsd.h
+++ b/src/include/port/bsd.h
@@ -24,7 +24,13 @@
#define HAS_TEST_AND_SET
#endif
+#if defined(__powerpc__)
+#define HAS_TEST_AND_SET
+typedef unsigned int slock_t;
+#endif
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
+#if !defined(__powerpc__)
typedef unsigned char slock_t;
+#endif