From 9656dc4c83633f3a34da6b6105ec04c383965816 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Fri, 30 Nov 2018 13:53:59 +0100 Subject: executor: Fix compilation on FreeBSD. This is an autogenerated file, but it seem that changes to it resulting from changes in executor/common_bsd.h must also be committed. e --- pkg/csource/generated.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pkg/csource/generated.go') diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index e63341912..931b0f2f4 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -406,6 +406,8 @@ void child() #include #include +#if GOOS_openbsd + static void vsnprintf_check(char* str, size_t size, const char* format, va_list args) { int rv; @@ -448,8 +450,6 @@ static void execute_command(bool panic, const char* format, ...) } } -#if GOOS_openbsd - #define __syscall syscall #if SYZ_EXECUTOR || __NR_syz_open_pts @@ -632,12 +632,13 @@ static long syz_extract_tcp_res(long a0, long a1, long a2) return 0; } #endif +#endif #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(); @@ -645,8 +646,6 @@ static int do_sandbox_none(void) } #endif -#endif - #elif GOOS_fuchsia #include -- cgit mrf-deployment