From 5fc80b5ad45fd3b70ad54dc72f721ef5bf2a0ed1 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 16 Jun 2009 04:21:28 +0000 Subject: Fix incorrect attempted inline of irc::sockets::sa_size git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11415 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include') diff --git a/include/socket.h b/include/socket.h index ddd453ac3..4a91404e5 100644 --- a/include/socket.h +++ b/include/socket.h @@ -144,10 +144,7 @@ namespace irc CoreExport int OpenTCPSocket(const char* addr, int socktype = SOCK_STREAM); /** Return the size of the structure for syscall passing */ - int sa_size(irc::sockets::sockaddrs& sa) - { - return sa.sa.sa_family == AF_INET ? sizeof(sa.in4) : sizeof(sa.in6); - } + CoreExport int sa_size(irc::sockets::sockaddrs& sa); /** Convert an address-port pair into a binary sockaddr * @param addr The IP address, IPv4 or IPv6 -- cgit v1.2.3