diff options
author | Tom Lane | 2007-10-26 13:30:10 +0000 |
---|---|---|
committer | Tom Lane | 2007-10-26 13:30:10 +0000 |
commit | 473628296980646e8fc4d31b7c587d9d9194447e (patch) | |
tree | e2037082116a7f719d6378b14414293591bc29e9 | |
parent | 8515e205d114a607461dce4fc56757a0dcf0f1ba (diff) |
Avoid including any backend-only stuff in the zic utility program.
Per gripe from Zdenek Kotala, though not exactly his patch.
-rw-r--r-- | src/timezone/ialloc.c | 2 | ||||
-rw-r--r-- | src/timezone/localtime.c | 3 | ||||
-rw-r--r-- | src/timezone/scheck.c | 2 | ||||
-rw-r--r-- | 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 @@ * ([email protected]). */ -#include "postgres.h" +/* this file needs to build in both frontend and backend contexts */ +#include "c.h" #include <fcntl.h> 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 <getopt.h> |