summaryrefslogtreecommitdiff
path: root/src/include/port
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port')
-rw-r--r--src/include/port/bsd.h6
-rw-r--r--src/include/port/linux.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/include/port/bsd.h b/src/include/port/bsd.h
index 4e754e77de..cfd0d2811b 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
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 81169b2c0c..da57b2b9a3 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -8,7 +8,7 @@
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
-#if defined(PPC)
+#if defined(__powerpc__)
typedef unsigned int slock_t;
#elif defined(__alpha)
@@ -34,6 +34,6 @@ typedef unsigned char slock_t;
/* #define HAVE_SIGSETJMP 1 */
#endif
-#if defined(PPC)
+#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif