From 43dc0505252636513703188a35590fb0cbd1d818 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 27 Oct 2004 19:14:07 +0000 Subject: [PATCH] Fix Cygwin compile for timezone. --- src/makefiles/Makefile.cygwin | 6 +++++- src/makefiles/Makefile.win32 | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/makefiles/Makefile.cygwin b/src/makefiles/Makefile.cygwin index b3ee00c09e7..3de1644e2e4 100644 --- a/src/makefiles/Makefile.cygwin +++ b/src/makefiles/Makefile.cygwin @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.4 2004/01/19 21:20:06 tgl Exp $ +# $PostgreSQL: pgsql/src/makefiles/Makefile.cygwin,v 1.5 2004/10/27 19:14:07 momjian Exp $ DLLTOOL= dlltool DLLWRAP= dllwrap BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres @@ -23,6 +23,10 @@ override CPPFLAGS+= -DBUILDING_DLL endif endif +ifneq (,$(findstring timezone,$(subdir))) +override CPPFLAGS+= -DBUILDING_DLL +endif + ifneq (,$(findstring ecpg/ecpglib,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index 5cf543d309e..bac94505e17 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -1,4 +1,4 @@ -# $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.4 2004/10/22 22:33:58 tgl Exp $ +# $PostgreSQL: pgsql/src/makefiles/Makefile.win32,v 1.5 2004/10/27 19:14:07 momjian Exp $ # Use replacement include files for those missing on Win32 override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32" @@ -27,7 +27,7 @@ ifneq (,$(findstring timezone,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif -ifneq (,$(findstring ecpg/lib,$(subdir))) +ifneq (,$(findstring ecpg/ecpglib,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif -- 2.39.5