Skip to content

Commit a0d84da

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 66f5217 commit a0d84da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/storage/s_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ tas(volatile slock_t *lock)
434434
* requires a barrier.
435435
*/
436436
#define S_UNLOCK(lock) (*((volatile slock_t *) (lock)) = 0)
437-
#elif __sparcv8
437+
#elif defined(__sparcv8)
438438
/* stbar is available (and required for both PSO, RMO), membar isn't */
439439
#define S_UNLOCK(lock) \
440440
do \

0 commit comments

Comments
 (0)