Re: [HACKERS] Date/time on glibc2 linux
От | Tom Lane |
---|---|
Тема | Re: [HACKERS] Date/time on glibc2 linux |
Дата | |
Msg-id | 12577.913304921@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Date/time on glibc2 linux ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>) |
Ответы |
Re: [HACKERS] Date/time on glibc2 linux
|
Список | 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 по дате отправления: