Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix broken #ifdef for __sparcv8
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Feb 2015 21:51:23 +0000 (23:51 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Feb 2015 21:57:35 +0000 (23:57 +0200)
Rob Rowan. Backpatch to all supported versions, like the patch that added
the broken #ifdef.

src/include/storage/s_lock.h

index a83982b9c4e7c68f2521a1a51d961f17125b068b..75c0f0f8658da01c96195046c4d87a75032ab0e7 100644 (file)
@@ -372,7 +372,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 \