From 1a022f71d86d935cd068a263f1884a24acdf0829 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 24 May 2005 16:45:23 +0000 Subject: [PATCH] Add -I$(srcdir) to CPPFLAGS to make psqlscan.c compile in vpath builds. Not sure why this hasn't been reported before; perhaps it is not needed with newer gcc versions, but it definitely fails here. --- src/bin/psql/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/Makefile b/src/bin/psql/Makefile index f72de15085..efd9c4b4d3 100644 --- a/src/bin/psql/Makefile +++ b/src/bin/psql/Makefile @@ -5,7 +5,7 @@ # Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.53 2005/03/25 18:17:13 momjian Exp $ +# $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.54 2005/05/24 16:45:23 tgl Exp $ # #------------------------------------------------------------------------- @@ -17,7 +17,7 @@ include $(top_builddir)/src/Makefile.global REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref -override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS) +override CPPFLAGS := -DFRONTEND -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS= command.o common.o help.o input.o stringutils.o mainloop.o copy.o \ startup.o prompt.o variables.o large_obj.o print.o describe.o \ -- 2.11.0