summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2015-02-13 21:51:23 +0000
committerHeikki Linnakangas2015-02-13 21:57:28 +0000
commitebdc2e1e20da61b57518a59eb4fc1786f5d1a403 (patch)
tree48810c61f724f6fb9c0a8090df966d511bd5e8d5
parent08aaae40e18e89065b191dbcaae54ab87ce63979 (diff)
Fix broken #ifdef for __sparcv8
Rob Rowan. Backpatch to all supported versions, like the patch that added the broken #ifdef.
-rw-r--r--src/include/storage/s_lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index d6df03f770c..ff7453b9cbd 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 \