Fixed missing include.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user