mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
gai_strerror on Windows is just 'char *'
This commit is contained in:
@@ -73,7 +73,11 @@ static const char *gai_messages[] = {
|
|||||||
* Returns an error message corresponding to an error code returned by
|
* Returns an error message corresponding to an error code returned by
|
||||||
* getaddrinfo() and getnameinfo()
|
* getaddrinfo() and getnameinfo()
|
||||||
*/
|
*/
|
||||||
|
#if defined _WIN32
|
||||||
|
char *
|
||||||
|
#else
|
||||||
const char *
|
const char *
|
||||||
|
#endif
|
||||||
gai_strerror(int ecode) {
|
gai_strerror(int ecode) {
|
||||||
union {
|
union {
|
||||||
const char *const_ptr;
|
const char *const_ptr;
|
||||||
|
Reference in New Issue
Block a user