From 81108d8da4fdeffcc2eded434fe1303fbb858bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= <tuexen@fh-muenster.de> Date: Fri, 20 Nov 2015 11:55:13 +0100 Subject: [PATCH] Fix compilation on NetBSD. --- gtests/net/packetdrill/run_system_call.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index b2da008e..e124b035 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -1758,6 +1758,7 @@ static int run_syscall_connect(struct state *state, return STATUS_OK; } +#if defined(__FreeBSD__) || defined(linux) static int run_syscall_sctp_peeloff(struct state *state, int script_copy_fd, int script_new_fd, @@ -1782,7 +1783,7 @@ static int run_syscall_sctp_peeloff(struct state *state, DEBUGP("success: setting socket to state %d\n", new_socket->state); return STATUS_OK; } - +#endif /**************************************************************************** * Here we have the parsing and invocation of the system calls that -- GitLab