summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2014-08-31 22:03:53 +0000
committerAndres Freund2014-08-31 22:03:53 +0000
commit5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872 (patch)
tree65cbf20749b10649450a1b83a80ab2750733624d
parent8fff977e29cda7c1641c43f9b293134adc77b65a (diff)
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
-rw-r--r--src/backend/storage/lmgr/spin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/spin.c b/src/backend/storage/lmgr/spin.c
index 9b71744cc6..e5a9d35373 100644
--- a/src/backend/storage/lmgr/spin.c
+++ b/src/backend/storage/lmgr/spin.c
@@ -30,7 +30,9 @@
#include "storage/spin.h"
+#ifndef HAVE_SPINLOCKS
PGSemaphore SpinlockSemaArray;
+#endif
/*
* Report the amount of shared memory needed to store semaphores for spinlock