1
0
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:
Robert Haas
2015-09-11 14:53:41 -04:00
parent 5cd6538345
commit 2ccc4e972e
5 changed files with 6 additions and 7 deletions

View File

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

View File

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

View File

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