]> sjero.net Git - wget/commitdiff
[svn] Define gai_strerror under mingw.
authorhniksic <devnull@localhost>
Sun, 26 Jun 2005 20:18:28 +0000 (13:18 -0700)
committerhniksic <devnull@localhost>
Sun, 26 Jun 2005 20:18:28 +0000 (13:18 -0700)
src/ChangeLog
src/mswindows.h

index 926bc88cddabe25a71eee98fecbba24e984ae51f..4a807784343ad52f8cd196deaded2a6ca04e9698 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-26  Gisle Vanem  <giva@bgnett.no>
+
+       * mswindows.h: Define gai_strerror under MinGW.
+
 2005-06-26  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (with_thousand_seps): Correctly implement thousand seps
index 6542744c79598554c582a3cbf6bd2f77f619a941..177f39f9aac6f076b419e3674c9f6f91dbc16322 100644 (file)
@@ -176,6 +176,13 @@ int wrapped_closesocket (int);
 #endif
 const char *windows_strerror (int);
 
+/* MingW 3.7 (or older) prototypes gai_strerror(), but is missing
+   from all import libraries. */
+#if defined(__MINGW32__) && defined(ENABLE_IPV6)
+# undef gai_strerror
+# define gai_strerror windows_strerror
+#endif
+
 /* Declarations of various socket errors:  */
 
 #define EWOULDBLOCK             WSAEWOULDBLOCK