aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb_netbsd.h
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-05-03 17:20:07 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-05-04 12:34:39 +0200
commit3a5604637f3a205052b07863f7157900a8bd936e (patch)
tree2842e0ad3fe99a7f4ad03c9ba13d5c720d2fbaba /executor/common_usb_netbsd.h
parent8e1412d59319a19d61ea48985b13ef550e3ab9ec (diff)
executor: resolve pseudo syscall compilation problems
Diffstat (limited to 'executor/common_usb_netbsd.h')
-rw-r--r--executor/common_usb_netbsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_usb_netbsd.h b/executor/common_usb_netbsd.h
index 8705856d9..562d78278 100644
--- a/executor/common_usb_netbsd.h
+++ b/executor/common_usb_netbsd.h
@@ -149,6 +149,7 @@ struct usb_qualifier_descriptor {
#define USB_REQ_GET_VDM 23
#define USB_REQ_SEND_VDM 24
+#if SYZ_EXECUTOR || __NR_syz_usb_connect
#include "common_usb.h"
static int vhci_open(void)
@@ -307,7 +308,6 @@ static volatile long syz_usb_connect_impl(int fd, uint64 speed, uint64 dev_len,
return fd;
}
-#if SYZ_EXECUTOR || __NR_syz_usb_connect
static volatile long syz_usb_connect(volatile long a0, volatile long a1,
volatile long a2, volatile long a3)
{