From 895317a2572f1313f0df1b20134a5e7afb890b51 Mon Sep 17 00:00:00 2001 From: lotodore Date: Mon, 4 Jun 2007 16:30:30 +0000 Subject: [PATCH] Fixed missing include. --- src/net/linux/socket_startup.cpp | 35 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/net/linux/socket_startup.cpp b/src/net/linux/socket_startup.cpp index b3c521d5..bf7159d5 100644 --- a/src/net/linux/socket_startup.cpp +++ b/src/net/linux/socket_startup.cpp @@ -22,9 +22,10 @@ #include -#include -#include -#include +#include +#include +#include +#include bool socket_startup() @@ -37,18 +38,18 @@ socket_cleanup() { } -bool -socket_has_sctp() -{ -#ifdef IPPROTO_SCTP - int test = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); - - if (test == -1) - return false; - close(test); - return true; -#else - return false; -#endif -} +bool +socket_has_sctp() +{ +#ifdef IPPROTO_SCTP + int test = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); + + if (test == -1) + return false; + close(test); + return true; +#else + return false; +#endif +}