From: Ondřej Surý Date: Wed, 29 Aug 2018 19:58:15 +0000 (+0200) Subject: gai_strerror on Windows is just 'char *' X-Git-Tag: v9.13.3~20^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d67b07c1154881186fcbd04479f554eab85573a1;p=thirdparty%2Fbind9.git gai_strerror on Windows is just 'char *' --- diff --git a/lib/irs/gai_strerror.c b/lib/irs/gai_strerror.c index 144ed66ece7..b922fa1019c 100644 --- a/lib/irs/gai_strerror.c +++ b/lib/irs/gai_strerror.c @@ -73,7 +73,11 @@ static const char *gai_messages[] = { * Returns an error message corresponding to an error code returned by * getaddrinfo() and getnameinfo() */ +#if defined _WIN32 +char * +#else const char * +#endif gai_strerror(int ecode) { union { const char *const_ptr;