Andrew Dunstan wrote:
> Magnus Hagander wrote:
>>> Anyway, the obvious fix seems to be to add a line to
>>> src/tools/msvc/ to #define HAVE_IPV6 1 in pg_config.h
>> Won't work, that hits both msvc and mingw. (assuming you maen
>> pg_config.h.win32, since pg_config.h is a generated file)
>> The proper fix is to put it in the msvc build sys, where it writes
>> pg_config.h :-) 
> Is that not what I suggested?

I thought you meant put it in the actual .h file that is used to
generate pg_config.h from. Apologies for my misunderstanding.

>> It also needs a new lib for initdb. I have a patch
>> for it, and it works here, I'm just asking if it's safe to enable it
>> or if
>> it may cause runtmie problems on platforms without ipv6.
> Which new lib? That seems odd since what we do  on MinGW does work.

The winsock libs. Our mingw build links them explicitly to all binaries,
the msvc build only links it to the ones that actually need it. And with
ipv6 support, initdb suddenly needs it.


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at


Reply via email to