Re: Building under Visual Studio 2008 - pqcomm.c compile error

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Zeugswetter Andreas OSB sIT <Andreas(dot)Zeugswetter(at)s-itsolutions(dot)at>
Cc: Dave Huber <DHuber(at)letourneautechnologies(dot)com>, "dknight(at)wsi(dot)com" <dknight(at)wsi(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Building under Visual Studio 2008 - pqcomm.c compile error
Date: 2009-09-02 17:40:21
Message-ID: 9837222c0909021040k4b48d7b4i8618303b0416b577@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Sep 2, 2009 at 19:34, Zeugswetter Andreas OSB
sIT<Andreas(dot)Zeugswetter(at)s-itsolutions(dot)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 Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2009-09-02 17:41:59 Re: remove flatfiles.c
Previous Message Zeugswetter Andreas OSB sIT 2009-09-02 17:34:50 Re: Building under Visual Studio 2008 - pqcomm.c compile error