Correct test whether to compile __pthread_compare_and_swap or not.
authordrepper <drepper>
Fri, 26 Jun 1998 09:51:20 +0000 (09:51 +0000)
committerdrepper <drepper>
Fri, 26 Jun 1998 09:51:20 +0000 (09:51 +0000)
linuxthreads/spinlock.c

index dba5d38..df30c35 100644 (file)
@@ -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);