Fix broken #ifdef for __sparcv8
authorHeikki Linnakangas
Fri, 13 Feb 2015 21:51:23 +0000 (23:51 +0200)
committerHeikki Linnakangas
Fri, 13 Feb 2015 21:56:57 +0000 (23:56 +0200)
Rob Rowan. Backpatch to all supported versions, like the patch that added
the broken #ifdef.

src/include/storage/s_lock.h

index 48583f8fc2275a48e1d350b48c077b9514500bd1..c1d2ed59740098a85e55361ded8393d6ed52c79e 100644 (file)
@@ -444,7 +444,7 @@ tas(volatile slock_t *lock)
  * requires a barrier.
  */
 #define S_UNLOCK(lock)     (*((volatile slock_t *) (lock)) = 0)
-#elif  __sparcv8
+#elif defined(__sparcv8)
 /* stbar is available (and required for both PSO, RMO), membar isn't */
 #define S_UNLOCK(lock) \
 do \