logo       

Re: MingW and _WIN32_WINNT: msg#00053

web.wget.patches

Subject: Re: MingW and _WIN32_WINNT

Gisle Vanem wrote:
The below patches is needed with the latest MingW headers
(e.g. <ws2tcpip.h>). I'll not go into as to why one should need it...

--- SVN-Latest/windows/config-compiler.h Wed Nov 01 15:31:42 2006
+++ windows/config-compiler.h Tue Dec 12 11:09:47 2006
@@ -91,6 +91,15 @@
#define HAVE_UINTPTR_T 1

#define HAVE_STRTOLL 1
+
+/* MingW needs _WIN32_WINNT==0x0501 defined to pull in getaddrinfo()
+ * and freeaddrinfo() etc.
+ */
+#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+

/* -------------------- */
/* MS Visual C section. */

--gv

hi gisle,

shouldn't these directives be inside the:

#if defined __MINGW32__
#endif

section of config-compiler.h?

--
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi http://www.tortonesi.com

University of Ferrara - Dept. of Eng. http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise