postgres.git / summary / log / commit / refs

commit    6ef5d894a42646bdc480da88136fb2afd199e187
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Fri Feb 13 21:51:23 2015 +0000
First released in: 9.5.0, 9.0.20, 9.1.16, 9.2.11, 9.3.7, 9.4.2

    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 e1719e208c3..f0322dad7ff 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -435,7 +435,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 \ [parent: 9ecd51da704b]