From 473628296980646e8fc4d31b7c587d9d9194447e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 26 Oct 2007 13:30:10 +0000 Subject: [PATCH] Avoid including any backend-only stuff in the zic utility program. Per gripe from Zdenek Kotala, though not exactly his patch. --- src/timezone/ialloc.c | 2 +- src/timezone/localtime.c | 3 ++- src/timezone/scheck.c | 2 +- src/timezone/zic.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/timezone/ialloc.c b/src/timezone/ialloc.c index c4bc22ad24..cecaf10b87 100644 --- a/src/timezone/ialloc.c +++ b/src/timezone/ialloc.c @@ -6,7 +6,7 @@ * $PostgreSQL$ */ -#include "postgres.h" +#include "postgres_fe.h" #include "private.h" diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 862d2980bd..831a6b10ee 100644 --- a/src/timezone/localtime.c +++ b/src/timezone/localtime.c @@ -12,7 +12,8 @@ * (guy@auspex.com). */ -#include "postgres.h" +/* this file needs to build in both frontend and backend contexts */ +#include "c.h" #include diff --git a/src/timezone/scheck.c b/src/timezone/scheck.c index 9cafd372f3..c3f92785c0 100644 --- a/src/timezone/scheck.c +++ b/src/timezone/scheck.c @@ -6,7 +6,7 @@ * $PostgreSQL$ */ -#include "postgres.h" +#include "postgres_fe.h" #include "private.h" diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 08a7d89ce9..70b8b9928c 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -6,7 +6,7 @@ * $PostgreSQL$ */ -#include "postgres.h" +#include "postgres_fe.h" #ifdef HAVE_GETOPT_H #include -- 2.39.5