Re: [PATCH] PostgreSQL fails to build with 32bit MinGW-w64
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Lars Kanis <kanis@comcard.de>
Cc: pgsql-hackers@postgresql.org, NISHIYAMA Tomoaki <tomoakin@staff.kanazawa-u.ac.jp>
Date: 2011-12-12T15:19:46Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Remove troublesome Asserts in cost_mergejoin().
- ff68b256a533 9.2.0 cited
-
Enable building with the Mingw64 compiler.
- 91812df4ed0f 9.1.0 cited
On 12/12/2011 09:54 AM, Lars Kanis wrote: > Am Freitag, 9. Dezember 2011, 15:31:17 schrieb Andrew Dunstan: >> Yeah, fair enough. I'll work on that. > Many thanks for reviewing, tweaking and commiting the patch! > One thing I wonder about, is this snippet. Is the define really needed now? > > * The Mingw64 headers choke if this is already defined - they > * define it themselves. > */ > #if !defined(__MINGW64_VERSION_MAJOR) || defined(WIN32_ONLY_COMPILER) > #define _WINSOCKAPI_ > #endif > #include<winsock2.h> > > > As previously discussed, unless you can prove it's not needed I don't want to remove it, on the ""if it ain't broke don't fix it" principle. I believe it is needed for at least some older compilers (specifically some of those used by buildfarm animals narwhal, frogmouth, mastodon, hamerkop and currawong), and it doesn't appear to be hurting anything. As you can see above it's been disabled for all Mingw-w64 compilers. If it's really bugging people we can try disabling it and see if any of those break, but honestly we have far uglier things that we carry for legacy reasons :-) cheers andrew