Re: Removing dependency to wsock32.lib when compiling code on WIndows

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Removing dependency to wsock32.lib when compiling code on WIndows
Дата
Msg-id CAB7nPqSBm4jw2TY-0asUoxscdiHxU3rUwXbnNrYbbaR=wSo2aA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Removing dependency to wsock32.lib when compiling code on WIndows  (Noah Misch <noah@leadboat.com>)
Ответы Re: Removing dependency to wsock32.lib when compiling code on WIndows  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Mon, Aug 11, 2014 at 10:48 PM, Noah Misch <noah@leadboat.com> wrote:
> Consistency with the MSVC build is desirable, either HAVE_GETADDRINFO for both
> or !HAVE_GETADDRINFO for both.

Hm. Looking here getattrinfo has been added in ws2_32 and was not
present in wsock32:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520%28v=vs.85%29.aspx

And this change in configure.in is the root cause of the regression:
-AC_SEARCH_LIBS(socket, [socket wsock32])
+AC_SEARCH_LIBS(socket, [socket ws2_32])

Btw, how do you determine if MSVC is using HAVE_GETADDRINFO? Is it
decided by the inclusion of getaddrinfo.c in @pgportfiles of
Mkvdbuild.pm?
-- 
Michael



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

Предыдущее
От: "MauMau"
Дата:
Сообщение: Re: option -T in pg_basebackup doesn't work on windows
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: pgcrypto: PGP signatures