Skip to content

Commit

Permalink
Fix incorrect call to Unicode Win32 InetPton (#4306)
Browse files Browse the repository at this point in the history
* Fix incorrect call to Unicode Win32

* Removed inet_pton call. Win32 already has it.
  • Loading branch information
jmorrill authored and tqchen committed Nov 12, 2019
1 parent d184d2f commit 2571449
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common/socket.h
Expand Up @@ -58,9 +58,6 @@ static inline int poll(struct pollfd *pfd, int nfds,
int 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
#include <sys/poll.h>
#endif // defined(_WIN32)
Expand Down

0 comments on commit 2571449

Please sign in to comment.