mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Protect definition of SpinlockSemaArray, just like its declaration.
Found via clang's -Wmissing-variable-declarations.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user