File tree 5 files changed +6
-7
lines changed
5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ distprep:
200
200
$(MAKE ) -C bootstrap bootparse.c bootscanner.c
201
201
$(MAKE ) -C catalog schemapg.h postgres.bki postgres.description postgres.shdescription
202
202
$(MAKE ) -C replication repl_gram.c repl_scanner.c
203
- $(MAKE ) -C storage lwlocknames.h
203
+ $(MAKE ) -C storage/lmgr lwlocknames.h
204
204
$(MAKE ) -C utils fmgrtab.c fmgroids.h errcodes.h
205
205
$(MAKE ) -C utils/misc guc-file.c
206
206
$(MAKE ) -C utils/sort qsort_tuple.c
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ subdir = src/backend/storage/lmgr
12
12
top_builddir = ../../../..
13
13
include $(top_builddir ) /src/Makefile.global
14
14
15
- OBJS = lmgr.o lock.o proc.o deadlock.o lwlock.o spin.o s_lock.o predicate.o
15
+ OBJS = lmgr.o lock.o proc.o deadlock.o lwlock.o lwlocknames.o spin.o \
16
+ s_lock.o predicate.o
16
17
17
18
include $(top_srcdir ) /src/backend/common.mk
18
19
Original file line number Diff line number Diff line change 23
23
print H " /* there is deliberately not an #ifndef LWLOCKNAMES_H here */\n\n " ;
24
24
print C $autogen , " \n " ;
25
25
26
- print C " static char *MainLWLockNames[] = {" ;
26
+ print C " char *MainLWLockNames[] = {" ;
27
27
28
28
while (<$lwlocknames >)
29
29
{
Original file line number Diff line number Diff line change 95
95
#include "utils/hsearch.h"
96
96
#endif
97
97
98
- /* Constants for lwlock names */
99
- #include "lwlocknames.c"
100
-
101
98
102
99
/* We use the ShmemLock spinlock to protect LWLockAssign */
103
100
extern slock_t * ShmemLock ;
Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ typedef union LWLockPadded
90
90
char pad [LWLOCK_PADDED_SIZE ];
91
91
} LWLockPadded ;
92
92
extern PGDLLIMPORT LWLockPadded * MainLWLockArray ;
93
+ extern char * MainLWLockNames [];
93
94
94
95
/* Names for fixed lwlocks */
95
- #include "lwlocknames.h"
96
+ #include "storage/ lwlocknames.h"
96
97
97
98
/*
98
99
* It's a bit odd to declare NUM_BUFFER_PARTITIONS and NUM_LOCK_PARTITIONS
You can’t perform that action at this time.
0 commit comments