mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
This commit is contained in:
parent
8fff977e29
commit
5c1faa7ba7
@ -30,7 +30,9 @@
|
|||||||
#include "storage/spin.h"
|
#include "storage/spin.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef HAVE_SPINLOCKS
|
||||||
PGSemaphore SpinlockSemaArray;
|
PGSemaphore SpinlockSemaArray;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Report the amount of shared memory needed to store semaphores for spinlock
|
* Report the amount of shared memory needed to store semaphores for spinlock
|
||||||
|
Loading…
Reference in New Issue
Block a user