diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-10-30 19:25:20 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-10-30 19:45:25 +0100 |
| commit | 18e33098d58c8738cc3b678346141b74d34d4e30 (patch) | |
| tree | 5a7a32f1119f7917ed2791e2f6f13821ff3c3b39 /executor/common_linux.h | |
| parent | ea2666e0c00c430b3be2ba0ebdbb189a14e5d0b4 (diff) | |
executor: fix linux includes
write_file() is needed for setup_sysctl() and syz_usbip_server_init().
setup_sysctl() also misses some header includes.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 73a2e658d..acb3acde7 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -72,8 +72,9 @@ static int event_timedwait(event_t* ev, uint64 timeout) #if SYZ_EXECUTOR || SYZ_REPEAT || SYZ_NET_INJECTION || SYZ_FAULT || SYZ_SANDBOX_NONE || \ SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NAMESPACE || SYZ_SANDBOX_ANDROID || \ - SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC || \ - ((__NR_syz_usb_connect || __NR_syz_usb_connect_ath9k) && USB_DEBUG) + SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC || SYZ_SYSCTL || \ + ((__NR_syz_usb_connect || __NR_syz_usb_connect_ath9k) && USB_DEBUG) || \ + __NR_syz_usbip_server_init #include <errno.h> #include <fcntl.h> #include <stdarg.h> @@ -4579,6 +4580,9 @@ static void setup_usb() #endif #if SYZ_EXECUTOR || SYZ_SYSCTL +#include <errno.h> +#include <string.h> + static void setup_sysctl() { static struct { |
