Re: Building under Visual Studio 2008 - pqcomm.c compile error - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Building under Visual Studio 2008 - pqcomm.c compile error
Date
Msg-id 9837222c0909021040k4b48d7b4i8618303b0416b577@mail.gmail.com
Whole thread Raw
In response to Re: Building under Visual Studio 2008 - pqcomm.c compile error  (Zeugswetter Andreas OSB sIT <Andreas.Zeugswetter@s-itsolutions.at>)
List pgsql-hackers
On Wed, Sep 2, 2009 at 19:34, Zeugswetter Andreas OSB
sIT<Andreas.Zeugswetter@s-itsolutions.at> wrote:
>> I'm getting this same error and wonder if Tom's fix is sufficient.
>>
>> IPPROTO_IPV6 is defined in wd2def.h IF _WIN32_WINNT >= 0x0501, but in
>> pg_config_os.h _WIN32_WINNT is DEFINED as 0x0500 so
>> IPPROTO_IPV6 is left
>> undefined.
>>
>> Regards,
>> Dave
>>
>> -----------------------
>> Unfortunately I had to uninstall VS2005 to install VS2008 due
>> to limited
>> space, or I'd search the old libraries to see where the symbol used to
>> be. Anyone care to search their VS2005 includes for IPPROTO_IPV6 so I
>> can compare to the VS2008?
>
> It is defined unconditionally in PlatformSDK/Include/WinSock2.h
> in VS2005 Professional.
>
> Will a build run on Win2000 if we define 0x0501 ?

I believe it will - as long as we don't use any of those features. And
AFAIK the API calls for winsock hasn't changed - it's just what
parameters they take. But it is certainly something w need to verify
by testing :-)


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas OSB sIT
Date:
Subject: Re: Building under Visual Studio 2008 - pqcomm.c compile error
Next
From: Josh Berkus
Date:
Subject: Re: remove flatfiles.c