diff --git a/src/port/Makefile b/src/port/Makefile
index a7eafdf8eeb74eea7f378a17436e055bbae23a64..76f967ae6564087900ee5a208b45cc41fcfa2602 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -7,7 +7,7 @@
 # with broken/missing library files.
 
 # IDENTIFICATION
-#    $PostgreSQL: pgsql/src/port/Makefile,v 1.12 2004/05/21 20:56:50 tgl Exp $
+#    $PostgreSQL: pgsql/src/port/Makefile,v 1.13 2004/05/22 02:15:08 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -15,6 +15,8 @@ subdir = src/port
 top_builddir = ../..
 include $(top_builddir)/src/Makefile.global
 
+override CPPFLAGS := -I$(top_builddir)/src/port $(CPPFLAGS)
+
 ifdef LIBOBJS
 all: libpgport.a
 endif