From d67b07c1154881186fcbd04479f554eab85573a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 29 Aug 2018 21:58:15 +0200 Subject: [PATCH] gai_strerror on Windows is just 'char *' --- lib/irs/gai_strerror.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/irs/gai_strerror.c b/lib/irs/gai_strerror.c index 144ed66ece..b922fa1019 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;