1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Slight change to nabstime.c so that configure is able to handle a system

whereby timezone isn't an int, but tzset() exists...

This isn't a definitive fix, as there is probably an easier way of
fixing the bug...
This commit is contained in:
Marc G. Fournier
1997-01-27 01:51:26 +00:00
parent a246e87d12
commit 8d3d5d2e2f
2 changed files with 17 additions and 2 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.12 1997/01/10 20:19:33 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.13 1997/01/27 01:51:21 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -292,7 +292,7 @@ tryabsdate(char *fields[], int nf, struct tm *tm, int *tzp)
(void) ftime(&now);
*tzp = now.timezone;
#else /* USE_POSIX_TIME */
#ifdef HAVE_TZSET
#if defined(HAVE_TZSET) && defined(HAVE_INT_TIMEZONE)
tzset();
#ifndef win32
*tzp = timezone / 60; /* this is an X/Open-ism */