mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Fix build problems in commit aa65de042f.
The previous way didn't work for vpath builds, and make distprep was busted too. Reported off-list by Andres Freund.
This commit is contained in:
@@ -12,7 +12,8 @@ subdir = src/backend/storage/lmgr
|
||||
top_builddir = ../../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
OBJS = lmgr.o lock.o proc.o deadlock.o lwlock.o spin.o s_lock.o predicate.o
|
||||
OBJS = lmgr.o lock.o proc.o deadlock.o lwlock.o lwlocknames.o spin.o \
|
||||
s_lock.o predicate.o
|
||||
|
||||
include $(top_srcdir)/src/backend/common.mk
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ print H $autogen;
|
||||
print H "/* there is deliberately not an #ifndef LWLOCKNAMES_H here */\n\n";
|
||||
print C $autogen, "\n";
|
||||
|
||||
print C "static char *MainLWLockNames[] = {";
|
||||
print C "char *MainLWLockNames[] = {";
|
||||
|
||||
while (<$lwlocknames>)
|
||||
{
|
||||
|
||||
@@ -95,9 +95,6 @@
|
||||
#include "utils/hsearch.h"
|
||||
#endif
|
||||
|
||||
/* Constants for lwlock names */
|
||||
#include "lwlocknames.c"
|
||||
|
||||
|
||||
/* We use the ShmemLock spinlock to protect LWLockAssign */
|
||||
extern slock_t *ShmemLock;
|
||||
|
||||
Reference in New Issue
Block a user