Skip to content

Commit

Permalink
Removed inet_pton call. Win32 already has it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorrill committed Nov 12, 2019
1 parent 60bb986 commit 6f96747
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 InetPtonA(family, addr_str, addr_buf);
}
#else
#include <sys/poll.h>
#endif // defined(_WIN32)
Expand Down

0 comments on commit 6f96747

Please sign in to comment.