From a0d84da1d4b58b1220b86d46b6094911f8288902 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 13 Feb 2015 23:51:23 +0200 Subject: [PATCH] Fix broken #ifdef for __sparcv8 Rob Rowan. Backpatch to all supported versions, like the patch that added the broken #ifdef. --- src/include/storage/s_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index 85fd0d54b5..cf6e82593d 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -434,7 +434,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 \ -- 2.40.0