Re: Removing dependency to wsock32.lib when compiling code on WIndows - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Removing dependency to wsock32.lib when compiling code on WIndows
Date
Msg-id CAB7nPqSBm4jw2TY-0asUoxscdiHxU3rUwXbnNrYbbaR=wSo2aA@mail.gmail.com
Whole thread Raw
In response to Re: Removing dependency to wsock32.lib when compiling code on WIndows  (Noah Misch <noah@leadboat.com>)
Responses Re: Removing dependency to wsock32.lib when compiling code on WIndows
List 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 by date:

Previous
From: "MauMau"
Date:
Subject: Re: option -T in pg_basebackup doesn't work on windows
Next
From: Marko Tiikkaja
Date:
Subject: Re: pgcrypto: PGP signatures