Re: Timezone problems / HAVE_INT_TIMEZINE

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: Timezone problems / HAVE_INT_TIMEZINE
Дата
Msg-id 3510AE03.3F72FE4C@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: Timezone problems / HAVE_INT_TIMEZINE  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
>         Sounds reasonable to me...so you want the test changed to:
========================================================================
> #include <stdio.h>
> #include <time.h>
>
> main() { struct tm *tmstruct; printf("%s\n", tmstruct->timezone); }
> ========================================================================

The structure member looks like tm->tm_gmtoff (an integer). There would
need to be other calls to set it up, unless something like

  main() {struct tm tmstruct, *tm = &tmstruct; tm->tm_gmtoff = 0; }

would be acceptable.

> And, if the compile fails...how is HAVE_INT_TIMEZONE set?  to
> FALSE?

Actually, if the test fails, then we need to #undef HAVE_INT_TIMEZONE,
although if it would be easier to set it to FALSE then I can pretty
easily fix up the sources to use that.

                  - Tom

В списке pgsql-hackers по дате отправления:

Предыдущее
От: dg@illustra.com (David Gould)
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] patches for 6.2.1p6
Следующее
От: t-ishii@sra.co.jp
Дата:
Сообщение: Re: [HACKERS] First mega-patch...