Skip to content

Commit 56a312a

Browse files
committed
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. 9cc2c18 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.
1 parent ecacbdb commit 56a312a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ subdir = src/backend/replication
1212
top_builddir = ../../..
1313
include $(top_builddir)/src/Makefile.global
1414

15-
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
15+
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
1616

1717
OBJS = walsender.o walreceiverfuncs.o walreceiver.o basebackup.o \
1818
repl_gram.o slot.o slotfuncs.o syncrep.o

0 commit comments

Comments
 (0)