mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
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 https://github.com/google/capsicum-test/issues/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
This commit is contained in:
parent
1d83090d85
commit
e4550c9aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
// Tests of SCTP functionality
|
||||
// Requires: libsctp-dev package on Debian Linux, CONFIG_IP_SCTP in kernel config
|
||||
#ifdef HAVE_SCTP
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
|
@ -12,6 +11,7 @@
|
|||
#include "capsicum.h"
|
||||
#include "capsicum-test.h"
|
||||
|
||||
#ifdef HAVE_SCTP
|
||||
static cap_rights_t r_ro;
|
||||
static cap_rights_t r_wo;
|
||||
static cap_rights_t r_rw;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue