Fixed missing include.

This commit is contained in:
lotodore
2007-06-04 16:30:30 +00:00
parent b9ccba6ed4
commit 895317a257
+18 -17
View File
@@ -22,9 +22,10 @@
#include <net/socket_startup.h> #include <net/socket_startup.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <unistd.h>
bool bool
socket_startup() socket_startup()
@@ -37,18 +38,18 @@ socket_cleanup()
{ {
} }
bool bool
socket_has_sctp() socket_has_sctp()
{ {
#ifdef IPPROTO_SCTP #ifdef IPPROTO_SCTP
int test = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); int test = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
if (test == -1) if (test == -1)
return false; return false;
close(test); close(test);
return true; return true;
#else #else
return false; return false;
#endif #endif
} }