diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 2dc8c45867c595a01a34550f377a5c3c6e807c5b..c5d58489ba1d3bf296c352a964398aa162fe2833 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -33,7 +33,7 @@ typedef unsigned int slock_t;
 
 #define HAS_TEST_AND_SET
 
-#elif defined(__s390__)
+#elif defined(__s390__) || defined(__s390x__)
 typedef unsigned int slock_t;
 
 #define HAS_TEST_AND_SET
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index 86fc8e2c869a2d6dcaad35a601ce7c9f8ae0c957..2188dcd9f2038230214a25e24b2b19d34f9eed90 100644
--- a/src/include/storage/s_lock.h
+++ b/src/include/storage/s_lock.h
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.93 2001/05/24 15:53:34 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.94 2001/09/24 20:10:44 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -162,7 +162,7 @@ tas(volatile slock_t *lock)
 
 #endif	 /* __arm__ */
 
-#if defined(__s390__)
+#if defined(__s390__) || defined(__s390x__)
 /*
  * S/390 Linux
  */