Re: Fix for win32 stat() problems

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: Fix for win32 stat() problems
Дата
Msg-id
47FD5401.5000509@dunslane.net
Ответ на
Список
Дерево обсуждения
Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix for win32 stat() problems Magnus Hagander <magnus@hagander.net>
Re: Fix for win32 stat() problems Andrew Dunstan <andrew@dunslane.net>
Re: Fix for win32 stat() problems Alvaro Herrera <alvherre@commandprompt.com>
Re: Fix for win32 stat() problems Tom Lane <tgl@sss.pgh.pa.us>


Magnus Hagander wrote:
> Tom Lane wrote:
>   
>> Magnus Hagander  writes:
>>     
>>> Trying to prepare a patch that does it the normal way, but so far
>>> I'm failing rather miserably. The *struct* stat is already
>>> redefined on win32, so whenever I try #undef or so it conflicts
>>> with that :-( Since there is no way to #undef only the parametrized
>>> version.
>>>       
>> I don't follow ... there's no such redefinition in our code AFAICS.
>> Do you mean that the system header files declare it as a macro?
>>     
>
> Yes.
>
>
>   

How about #defining safe_stat to be pg_win32_safe_stat on Windows and 
simply stat elsewhere? Then use safe_stat at the places you consider 
critical.

cheers

andrew
В списке pgsql-patches по дате отправления
От: Magnus Hagander
Дата:
От: Gregory Stark
Дата:
Сообщение: Re: EXPLAIN progress info
FAQ