1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

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.
This commit is contained in:
Bruce Momjian
2004-04-30 14:24:14 +00:00
parent e9a028f81f
commit a640845c88
3 changed files with 15 additions and 8 deletions

View File

@ -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