Re: [COMMITTERS] pgsql-server/src backend/commands/variable.c b ...

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [COMMITTERS] pgsql-server/src backend/commands/variable.c b ...
Дата
Msg-id 200305221907.h4MJ7Rt19735@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql-server/src backend/commands/variable.c b ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
OK, thanks.

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> Maybe on your machine we need to include <sys/time.h> or some such?
> 
> > I just checked using grep on all my /usr/include files, and can't find
> > tzname anywhere, but it is in libc.  I added a line to port/bsdi.h to
> > fix it, but I am not sure that is the correct solution.
> 
> I looked at the autoconf macro that tests for existence of tzname[],
> and saw that it explicitly does
> 
> #ifndef tzname /* For SGI.  */
> extern char *tzname[];
> #endif
> 
> after including <time.h>.  So it seems that they are expecting some
> systems not to provide a declaration for tzname even though they have it.
> 
> I have checked in a fix that does #ifdef HAVE_TZNAME, and includes
> a declaration as above.  (Without the declaration, we would fail anyway
> on machines that are like this.)  So you shouldn't need the port/bsdi.h
> hack anymore.
> 
>             regards, tom lane
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql-server/src backend/commands/variable.c b ...
Следующее
От: Bruce Momjian
Дата:
Сообщение: Missing EAI_ADDRFAMILY