Skip to content

Commit

Permalink
Fix incorrect call to Unicode Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorrill committed Nov 12, 2019
1 parent 6252145 commit 60bb986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/socket.h
Expand Up @@ -59,7 +59,7 @@ static inline int poll(struct pollfd *pfd, int nfds,
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);
return InetPtonA(family, addr_str, addr_buf);
}
#else
#include <sys/poll.h>
Expand Down

0 comments on commit 60bb986

Please sign in to comment.