aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
authorm00nbsd <john.big.sandwich@gmail.com>2020-05-19 21:13:37 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2020-05-19 23:07:55 +0200
commit67fa1f59b87fed7268b465f7e9540a590a250c65 (patch)
treed6d7f3c7975308cdef5aaf8cf4a51f7b9ae6de0c /executor/executor_bsd.h
parent8f2ad84be93443ce86dcaa7724cd6d3846b798ad (diff)
executor: add support for USB fuzzing on NetBSD
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index 39a4d732e..00de87d06 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -156,3 +156,15 @@ static bool cover_check(uint64 pc)
#else
#include "nocover.h"
#endif
+
+#if GOOS_netbsd
+#define SYZ_HAVE_FEATURES 1
+static feature_t features[] = {
+ {"usb", setup_usb},
+};
+
+static void setup_machine(void)
+{
+ /* nothing */
+}
+#endif