From 66e620d0c0c40823cca1e3c1edc47fa3e289353c Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Thu, 25 Sep 2014 15:22:26 +0200 Subject: [PATCH] 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. --- src/backend/replication/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/Makefile b/src/backend/replication/Makefile index 9d9ec87c9af..57953f8dca3 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 syncrep.o