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.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/include/port/bsd.h b/src/include/port/bsd.h
index 9b8b0b65428..c3a6adb9538 100644
--- a/src/include/port/bsd.h
+++ b/src/include/port/bsd.h
@@ -28,15 +28,16 @@
#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;
+#if defined(__powerpc__)
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(__powerpc__)
+typedef unsigned int slock_t;
+#else
+typedef unsigned char slock_t;
#endif