From 7d4edd5ac3987ff1161a5152e3aa19c8a0a8260a Mon Sep 17 00:00:00 2001 From: burlex Date: Thu, 14 Jun 2007 22:00:17 +0000 Subject: - Made the recvfrom wrapper a bit neater. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7314 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/socket.h') 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 -- cgit v1.2.3