diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 3fe4d621b0fd2eed20d9dc6d6f2857ae165fe3eb..345aac71b1d5b494de886ce7ab7231ed73978f2d 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -6,22 +6,26 @@
 */
 #define JMP_BUF
 #define USE_POSIX_TIME
-#define HAS_TEST_AND_SET
 
 #if defined(__i386__)
 typedef unsigned char slock_t;
+#define HAS_TEST_AND_SET
 
 #elif defined(__sparc__)
 typedef unsigned char slock_t;
+#define HAS_TEST_AND_SET
 
 #elif defined(__powerpc__)
 typedef unsigned int slock_t;
+#define HAS_TEST_AND_SET
 
 #elif defined(__alpha__)
 typedef long int slock_t;
+#define HAS_TEST_AND_SET
 
 #elif defined(__mips__)
 typedef unsigned int slock_t;
+#define HAS_TEST_AND_SET
 
 #endif