parent
10f59844d5
commit
9f1114571c
@ -0,0 +1,27 @@
|
||||
--- network-3.1.1.1/include/HsNet.h~ 2001-09-09 09:46:40.000000000 +0800
|
||||
+++ network-3.1.1.1/include/HsNet.h 2021-06-24 17:25:39.287773682 +0800
|
||||
@@ -86,24 +86,6 @@
|
||||
recvFd(int sock);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
-INLINE char *
|
||||
-hsnet_inet_ntoa(
|
||||
-#if defined(_WIN32)
|
||||
- u_long addr
|
||||
-#elif defined(HAVE_IN_ADDR_T)
|
||||
- in_addr_t addr
|
||||
-#elif defined(HAVE_INTTYPES_H)
|
||||
- u_int32_t addr
|
||||
-#else
|
||||
- unsigned long addr
|
||||
-#endif
|
||||
- )
|
||||
-{
|
||||
- struct in_addr a;
|
||||
- a.s_addr = addr;
|
||||
- return inet_ntoa(a);
|
||||
-}
|
||||
-
|
||||
INLINE int
|
||||
hsnet_getnameinfo(const struct sockaddr* a,socklen_t b, char* c,
|
||||
# if defined(_WIN32)
|
Loading…
Reference in new issue