From: Heikki Linnakangas Date: Fri, 13 Feb 2015 21:51:23 +0000 (+0200) Subject: Fix broken #ifdef for __sparcv8 X-Git-Tag: REL9_5_ALPHA1~779 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=33e879c4e9f485405fc19b663392d8635714d020;p=postgresql.git 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 52b86e3f0d7..f4dc0dbedc9 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -404,7 +404,7 @@ tas(volatile slock_t *lock) * requires a barrier. We fall through to the default gcc definition of * S_UNLOCK in this case. */ -#elif __sparcv8 +#elif defined(__sparcv8) /* stbar is available (and required for both PSO, RMO), membar isn't */ #define S_UNLOCK(lock) \ do \