summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index 1304ecb57..db0aa7f92 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -41,7 +41,9 @@
#ifdef CONFIG_USE_IOCP
#define _accept(s, addr, addrlen) __accept_socket(s, addr, addrlen, m_acceptEvent)
#define _getsockname(fd, sockptr, socklen) __getsockname(fd, sockptr, socklen, m_acceptEvent)
+#define _recvfrom(s, buf, len, flags, from, fromlen) __recvfrom(s, buf, len, flags, from, fromlen, ((IOCPEngine*)ServerInstance->SE)->udp_ov)
#else
+#define _recvfrom recvfrom
#define _accept accept
#define _getsockname getsockname
#endif