Skip to content

Commit 6ef5d89

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 9ecd51d commit 6ef5d89

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
@@ -435,7 +435,7 @@ tas(volatile slock_t *lock)
435435
* requires a barrier.
436436
*/
437437
#define S_UNLOCK(lock) (*((volatile slock_t *) (lock)) = 0)
438-
#elif __sparcv8
438+
#elif defined(__sparcv8)
439439
/* stbar is available (and required for both PSO, RMO), membar isn't */
440440
#define S_UNLOCK(lock) \
441441
do \

0 commit comments

Comments
 (0)