back branches vs. VS 2008

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема back branches vs. VS 2008
Дата
Msg-id 4D22041A.3070908@dunslane.net
обсуждение исходный текст
Ответы Re: back branches vs. VS 2008  (Magnus Hagander <magnus@hagander.net>)
Re: back branches vs. VS 2008  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
The following patch allows me to build the 8.3 and 8.4 branches using 
Visual Studio 2008, once the build system is patched. But I don't really 
know why. HEAD and 9.0 build fine without it. But those branches 
branches fail with a complaint about IPPROTO_IPV6 being undefined.

The patch seems harmless enough. But I'd like to know why it's 
happening. Does anyone have a clue?

cheers

andrew

diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 06aece3..c1775ea 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -383,7 +383,7 @@ StreamServerPort(int family, char *hostName, 
unsigned short portNumber,        } #endif

-#ifdef IPV6_V6ONLY
+#if defined(IPV6_V6ONLY) && defined(IPPROTO_IPV6)        if (addr->ai_family == AF_INET6)        {            if
(setsockopt(fd,IPPROTO_IPV6, IPV6_V6ONLY,
 



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Re: new patch of MERGE (merge_204) & a question about duplicated ctid
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: back branches vs. VS 2008