Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 56a23a8

Browse files
committed
Fix broken #ifdef for __sparcv8
Rob Rowan. Backpatch to all supported versions, like the patch that added the broken #ifdef.
1 parent 5eef3c6 commit 56a23a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/s_lock.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ tas(volatile slock_t *lock)
444444
* requires a barrier.
445445
*/
446446
#define S_UNLOCK(lock) (*((volatile slock_t *) (lock)) = 0)
447-
#elif __sparcv8
447+
#elif defined(__sparcv8)
448448
/* stbar is available (and required for both PSO, RMO), membar isn't */
449449
#define S_UNLOCK(lock) \
450450
do \

0 commit comments

Comments
 (0)