Skip to content
Snippets Groups Projects
Commit 66e620d0 authored by Andres Freund's avatar Andres Freund
Browse files

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. 9cc2c182 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.
parent 3359a818
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ subdir = src/backend/replication ...@@ -12,7 +12,7 @@ subdir = src/backend/replication
top_builddir = ../../.. top_builddir = ../../..
include $(top_builddir)/src/Makefile.global 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 \ OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
repl_gram.o syncrep.o repl_gram.o syncrep.o
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment