From 59e959932704c7a500e97fda11bbae7ccca50020 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Tue, 25 Apr 2023 13:24:12 +0100 Subject: sys/targets: switch openbsd to SyscallNumbers: false This relies on sendsyslog in sys/syslog.h which will be in OpenBSD HEAD soon. --- executor/common_bsd.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'executor/common_bsd.h') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 2bfce1826..eac88fd3c 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -11,6 +11,24 @@ #include #include +#if GOOS_openbsd +// Needed syscall libc stubs. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // GOOS_openbsd + #if GOOS_netbsd #if SYZ_EXECUTOR || __NR_syz_usb_connect @@ -91,9 +109,12 @@ static int fault_injected(int fd) #endif -#if GOOS_openbsd || GOOS_darwin +#if GOOS_openbsd +#define CAST +#endif // GOOS_openbsd +#if GOOS_darwin #define __syscall syscall -#endif // GOOS_openbsd || GOOS_darwin +#endif // GOOS_darwin #if GOOS_openbsd && (SYZ_EXECUTOR || __NR_syz_open_pts) #include -- cgit mrf-deployment