Protect definition of SpinlockSemaArray, just like its declaration.

Found via clang's -Wmissing-variable-declarations.
This commit is contained in:
Andres Freund 2014-09-01 00:03:53 +02:00
parent 8fff977e29
commit 5c1faa7ba7

View File

@ -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