Commit 2571449e by jmorrill Committed by Tianqi Chen

Fix incorrect call to Unicode Win32 InetPton (#4306)

* Fix incorrect call to Unicode Win32

* Removed inet_pton call. Win32 already has it.
parent d184d2f8
...@@ -58,9 +58,6 @@ static inline int poll(struct pollfd *pfd, int nfds, ...@@ -58,9 +58,6 @@ static inline int poll(struct pollfd *pfd, int nfds,
int timeout) { int timeout) {
return WSAPoll(pfd, nfds, timeout); return WSAPoll(pfd, nfds, timeout);
} }
static inline int inet_pton(int family, const char* addr_str, void* addr_buf) {
return InetPton(family, addr_str, addr_buf);
}
#else #else
#include <sys/poll.h> #include <sys/poll.h>
#endif // defined(_WIN32) #endif // defined(_WIN32)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment