diff options
author | Andres Freund <andres@anarazel.de> | 2014-09-01 00:03:53 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-09-01 00:03:53 +0200 |
commit | 5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872 (patch) | |
tree | 65cbf20749b10649450a1b83a80ab2750733624d /src | |
parent | 8fff977e29cda7c1641c43f9b293134adc77b65a (diff) | |
download | postgresql-5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872.tar.gz postgresql-5c1faa7ba729c780b0ac598dbc23dbb1d6e1b872.zip |
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/lmgr/spin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/lmgr/spin.c b/src/backend/storage/lmgr/spin.c index 9b71744cc6c..e5a9d353730 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 |