]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Add contents of LDFLAGS in addition to CXXFLAGS
[user/henk/code/inspircd.git] / include / socket.h
index ddd453ac3f6280caa6a5b853a32ad120b4964bbd..4a91404e52419a6291de5609e95e94006830c0f3 100644 (file)
@@ -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