Fix build problems in commit aa65de042f5828968f2f6cd65f45c543a40cc3e6.

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

@ -90,9 +90,10 @@ typedef union LWLockPadded
char pad[LWLOCK_PADDED_SIZE];
} LWLockPadded;
extern PGDLLIMPORT LWLockPadded *MainLWLockArray;
extern char *MainLWLockNames[];
/* Names for fixed lwlocks */
#include "lwlocknames.h"
#include "storage/lwlocknames.h"
/*
* It's a bit odd to declare NUM_BUFFER_PARTITIONS and NUM_LOCK_PARTITIONS