summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
authorburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 22:00:17 +0000
committerburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-14 22:00:17 +0000
commit7d4edd5ac3987ff1161a5152e3aa19c8a0a8260a (patch)
tree80220eb63f9617793ef55ef7abed21d4965238fe /include/socket.h
parent2b293ebe7586687df2df9c87eb1b05697b4d318a (diff)
- Made the recvfrom wrapper a bit neater.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7314 e03df62e-2008-0410-955e-edbf42e46eb7
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