From 5019227f61ee6337ea9dfaecdc51b0a793c6e19c Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 26 Jun 2005 13:18:28 -0700 Subject: [PATCH] [svn] Define gai_strerror under mingw. --- src/ChangeLog | 4 ++++ src/mswindows.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 926bc88c..4a807784 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-26 Gisle Vanem + + * mswindows.h: Define gai_strerror under MinGW. + 2005-06-26 Hrvoje Niksic * utils.c (with_thousand_seps): Correctly implement thousand seps diff --git a/src/mswindows.h b/src/mswindows.h index 6542744c..177f39f9 100644 --- a/src/mswindows.h +++ b/src/mswindows.h @@ -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 -- 2.39.2