diff options
Diffstat (limited to 'executor/common_bsd.h')
| -rw-r--r-- | executor/common_bsd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h index c818d802e..4ed81a3a3 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -11,6 +11,17 @@ #include <string.h> #include <sys/syscall.h> +#if GOOS_netbsd +#if SYZ_EXECUTOR || __NR_syz_usb_connect +#include "common_usb_netbsd.h" +static void setup_usb(void) +{ + if (chmod("/dev/vhci", 0666)) + fail("failed to chmod /dev/vhci"); +} +#endif +#endif + #if GOOS_openbsd #define __syscall syscall |
