2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 23:25:38 +00:00

gai_strerror on Windows is just 'char *'

This commit is contained in:
Ondřej Surý
2018-08-29 21:58:15 +02:00
parent 7cba3cc474
commit d67b07c115

View 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;