diff options
Diffstat (limited to 'executor/common_bsd.h')
| -rw-r--r-- | executor/common_bsd.h | 10 |
1 files 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 <stdbool.h> #include <string.h> +#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 |
