projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d184d2f
)
Fix incorrect call to Unicode Win32 InetPton (#4306)
author
jmorrill
<jeremiah.morrill@gmail.com>
Tue, 12 Nov 2019 16:50:06 +0000
(08:50 -0800)
committer
Tianqi Chen
<tqchen@users.noreply.github.com>
Tue, 12 Nov 2019 16:50:06 +0000
(08:50 -0800)
* Fix incorrect call to Unicode Win32
* Removed inet_pton call. Win32 already has it.
src/common/socket.h
patch
|
blob
|
history
diff --git
a/src/common/socket.h
b/src/common/socket.h
index
616991d
..
07fcfa8
100644
(file)
--- a/
src/common/socket.h
+++ b/
src/common/socket.h
@@
-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)