Re: [HACKERS] Date/time on glibc2 linux - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Date/time on glibc2 linux
Date
Msg-id 12577.913304921@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Date/time on glibc2 linux  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
Responses Re: [HACKERS] Date/time on glibc2 linux  (Oleg Broytmann <phd@sun.med.ru>)
List pgsql-hackers
"Thomas G. Lockhart" <lockhart@alumni.caltech.edu> writes:
> If the tm structure contains the timezone info (as it claims to on my
> RH5.1 glibc2 system) then for testing try to #undef HAVE_INT_TIMEZONE in
> config.h and see how it goes. If I have a chance tomorrow I'll try doing
> the same at work. I'm guessing that our configure tests look for the
> global variable version first, and that the glibc2 passes that test even
> though the other mechanism is the right one.

Yes, the autoconf test just checks for a global variable "timezone"
declared in <time.h>.  It'd probably be better to reverse the test to
check for the timezone fields in a struct tm.  I don't much care for
the name of the configuration symbol either ... maybe change it to
HAVE_STRUCT_TM_TZ_FIELDS ?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Sferacarta Software
Date:
Subject: Re[2]: AW: [HACKERS] isnull() or is it?t
Next
From: Oleg Broytmann
Date:
Subject: Re: [HACKERS] Date/time on glibc2 linux