about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/spinlock.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 2bbeb928e9..b4f2ae61b3 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+1998-06-26  Ulrich Drepper  <drepper@cygnus.com>
+
+	* spinlock.c: Correct test whether to compile
+	__pthread_compare_and_swap or not.
+
 1998-06-25 19:27  Ulrich Drepper  <drepper@cygnus.com>
 
 	* attr.c: Finish user stack support.  Change locking code to be safe
diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c
index dba5d38fd2..df30c35e6c 100644
--- a/linuxthreads/spinlock.c
+++ b/linuxthreads/spinlock.c
@@ -116,7 +116,7 @@ again:
 int __pthread_has_cas = 0;
 #endif
 
-#ifndef HAS_COMPARE_AND_SWAP
+#if !defined HAS_COMPARE_AND_SWAP || defined TEST_FOR_COMPARE_AND_SWAP
 
 static void __pthread_acquire(int * spinlock);