aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-25 15:22:26 +0200
committerAndres Freund <andres@anarazel.de>2014-09-25 15:23:07 +0200
commit2024ead21b8ac64f0d6cd13d0c1c2cb8d596238e (patch)
tree7606531ef644a1c08df655370a8f93f6d92304bd
parentbda1d14360404ef58c4647888032158991051b14 (diff)
downloadpostgresql-2024ead21b8ac64f0d6cd13d0c1c2cb8d596238e.tar.gz
postgresql-2024ead21b8ac64f0d6cd13d0c1c2cb8d596238e.zip
Fix VPATH builds of the replication parser from git for some !gcc compilers.
Some compilers don't automatically search the current directory for included files. 9cc2c182fc2 fixed that for builds from tarballs by adding an include to the source directory. But that doesn't work when the scanner is generated in the VPATH directory. Use the same search path as the other parsers in the tree. One compiler that definitely was affected is solaris' sun cc. Backpatch to 9.1 which introduced using an actual parser for replication commands.
-rw-r--r--src/backend/replication/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/Makefile b/src/backend/replication/Makefile
index 6f17b08a6a5..b73370eaa98 100644
--- a/src/backend/replication/Makefile
+++ b/src/backend/replication/Makefile
@@ -12,7 +12,7 @@ subdir = src/backend/replication
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
+override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
repl_gram.o slot.o slotfuncs.o syncrep.o