Skip to content

Commit e4550c9

Browse files
committed
capsicum-test: include SCTP tests
HAVE_SCTP is #defined in syscalls.h, so move the #ifdef after the inclusion of the header that #defines it. Issue google/capsicum-test#60 is open upstream in case a slightly different version is needed for Linux. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46995
1 parent 1d83090 commit e4550c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/capsicum-test/sctp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Tests of SCTP functionality
22
// Requires: libsctp-dev package on Debian Linux, CONFIG_IP_SCTP in kernel config
3-
#ifdef HAVE_SCTP
43
#include <sys/types.h>
54
#include <sys/socket.h>
65
#include <netinet/in.h>
@@ -12,6 +11,7 @@
1211
#include "capsicum.h"
1312
#include "capsicum-test.h"
1413

14+
#ifdef HAVE_SCTP
1515
static cap_rights_t r_ro;
1616
static cap_rights_t r_wo;
1717
static cap_rights_t r_rw;

0 commit comments

Comments
 (0)