Re: [BUGS] 7.0beta1: bugs appearing on cygwin

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [BUGS] 7.0beta1: bugs appearing on cygwin
Дата
Msg-id 200002282326.SAA23969@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] 7.0beta1: bugs appearing on cygwin  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [BUGS] 7.0beta1: bugs appearing on cygwin  (Marko Kreen <marko@l-t.ee>)
Список pgsql-bugs
> > OK, I am confused.  We have HAVE_SNPRINTF, but I don't see it being used
> > anywhere.  Is it still relivant to our code?  Does NT not have snprintf?
>
> Probably ecpg needs to import the ports/snprintf module if it exists.
> See psql, which does this already.

Doing that now.  Thanks.

>
> >> 2) gcc warns about redefine of CURRENT_TIME. Nothing
> >> serious (I mean the compile does not fail..), I just thought I mention.
> >> defined in backend/parse.h & <sys/ipc.h> (cygwin32_ipc-1.03)
> >
> > Seems this is getting in our way.  We could try  undefining it before
> > defining it, I guess.  I don't think it affects the compile.
>
> I wonder whether it is possible to avoid including <sys/ipc.h> in the
> files that need to include parse.h.  Which files show the warning,
> anyway?

Probably possible.  Not sure.  Perhaps the user can supply a patch.
Even:

    #ifndef CURRENT_TIME
    #include <ipc.h>
    #endif

may work.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] 7.0beta1: bugs appearing on cygwin
Следующее
От: Michael Andreasen
Дата:
Сообщение: No subject was specified.