(inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop.
MinGW does not support getnameinfo() for Windows 2000 or earlier.
This commit is contained in:
parent
82f8738b16
commit
5bb91bd98b
1 changed files with 2 additions and 0 deletions
|
@ -321,6 +321,7 @@ posix_socket(int domain, int type, int protocol)
|
||||||
return new_fd;
|
return new_fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_GETADDRINFO
|
||||||
const char *
|
const char *
|
||||||
inet_ntop(int af, const void *source, char *dest, socklen_t len)
|
inet_ntop(int af, const void *source, char *dest, socklen_t len)
|
||||||
{
|
{
|
||||||
|
@ -348,6 +349,7 @@ inet_ntop(int af, const void *source, char *dest, socklen_t len)
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FILE_FUNCTION(type, expr) \
|
#define FILE_FUNCTION(type, expr) \
|
||||||
int handle; \
|
int handle; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue