]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
gai_strerror on Windows is just 'char *'
authorOndřej Surý <ondrej@sury.org>
Wed, 29 Aug 2018 19:58:15 +0000 (21:58 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 29 Aug 2018 20:05:09 +0000 (22:05 +0200)
lib/irs/gai_strerror.c

index 144ed66ece72762915f25fb93923180f510173f1..b922fa1019ccdbe4200fb13b63a108c135122632 100644 (file)
@@ -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;