From 9568070f6f699cbf91d3f71b2d029f31a4e2cb3b Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Fri, 30 Nov 2018 11:37:35 +0100 Subject: executor: Fix compilation on FreeBSD Fix the compilation on FreeBSD when not supporting the tun interface. --- executor/common_bsd.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 6a6e3527a..a372f1d13 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -9,6 +9,9 @@ #include #include +#if GOOS_openbsd + + static void vsnprintf_check(char* str, size_t size, const char* format, va_list args) { int rv; @@ -54,8 +57,6 @@ static void execute_command(bool panic, const char* format, ...) } } -#if GOOS_openbsd - #define __syscall syscall #if SYZ_EXECUTOR || __NR_syz_open_pts @@ -255,17 +256,16 @@ static long syz_extract_tcp_res(long a0, long a1, long a2) return 0; } #endif +#endif // GOOS_openbsd #if SYZ_EXECUTOR || SYZ_SANDBOX_NONE static void loop(); static int do_sandbox_none(void) { -#if SYZ_EXECUTOR || SYZ_TUN_ENABLE +#if SYZ_TUN_ENABLE initialize_tun(procid); #endif loop(); return 0; } #endif // SYZ_EXECUTOR || SYZ_SANDBOX_NONE - -#endif // GOOS_openbsd -- cgit mrf-deployment