From: Heikki Linnakangas Date: Fri, 13 Feb 2015 21:51:23 +0000 (+0200) Subject: Fix broken #ifdef for __sparcv8 X-Git-Tag: REL9_0_20~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61165fae050c8dec07d2bac4aad30754fd6b0d6b;p=postgresql Fix broken #ifdef for __sparcv8 Rob Rowan. Backpatch to all supported versions, like the patch that added the broken #ifdef. --- diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index a83982b9c4..75c0f0f865 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -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 \