1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Fix broken #ifdef for __sparcv8

Rob Rowan. Backpatch to all supported versions, like the patch that added
the broken #ifdef.
This commit is contained in:
Heikki Linnakangas
2015-02-13 23:51:23 +02:00
parent 66f5217f52
commit a0d84da1d4

View File

@ -434,7 +434,7 @@ tas(volatile slock_t *lock)
* requires a barrier. * requires a barrier.
*/ */
#define S_UNLOCK(lock) (*((volatile slock_t *) (lock)) = 0) #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 */ /* stbar is available (and required for both PSO, RMO), membar isn't */
#define S_UNLOCK(lock) \ #define S_UNLOCK(lock) \
do \ do \