summaryrefslogtreecommitdiff
path: root/src/timezone/private.h
diff options
context:
space:
mode:
authorBruce Momjian2004-04-30 14:24:14 +0000
committerBruce Momjian2004-04-30 14:24:14 +0000
commita640845c881fe2ee0798187825a24cbb90c44f19 (patch)
treeb88d105ec2b7ea00a9f4259ec657909f278bd520 /src/timezone/private.h
parente9a028f81f10a63b340696fc34c4dac9849a8f43 (diff)
Allow timezone to compile under Unix by blocking 'timezone' conflict with
system headers. Allow system to find timezone database by pasing pkglibdir into the binary via a define.
Diffstat (limited to 'src/timezone/private.h')
-rw-r--r--src/timezone/private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timezone/private.h b/src/timezone/private.h
index c8f45486837..4c94b2d21e5 100644
--- a/src/timezone/private.h
+++ b/src/timezone/private.h
@@ -88,7 +88,11 @@ static char privatehid[] = "@(#)private.h 7.53";
#include "errno.h"
#include "string.h"
#include "limits.h" /* for CHAR_BIT */
+#define _timezone timezone
+#undef timezone
#include "time.h"
+#define timezone _timezone
+#undef _timezone
#include "stdlib.h"
#if HAVE_GETTEXT - 0