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 CAB7nPqTfT0hYq5ev0RRUxR672d4Du+GVv0uMtWB=xpfQ1yapDA@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 Tue, Aug 12, 2014 at 9:43 AM, Noah Misch <noah@leadboat.com> wrote:
>
> Somehow or other, we must bring these parts into agreement.


It is interesting to see that with MinGW-32b getaddrinfo is still set
to no at configure phase. What if we simply wrap "undef gai_strerror"
like in the patch attached? I just set up an environment with MinGW-64
and I was able to build the code (tested as well with MinGW-32 btw).

Another idea would be to enforce getaddrinfo to no at configure for
MinGW environments.
Thoughts?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: replication commands and log_statements
Next
From: Jeff Davis
Date:
Subject: Re: 9.5: Memory-bounded HashAgg