diff options
| author | m00nbsd <john.big.sandwich@gmail.com> | 2020-05-19 21:13:37 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2020-05-19 23:07:55 +0200 |
| commit | 67fa1f59b87fed7268b465f7e9540a590a250c65 (patch) | |
| tree | d6d7f3c7975308cdef5aaf8cf4a51f7b9ae6de0c /executor/common_usb.h | |
| parent | 8f2ad84be93443ce86dcaa7724cd6d3846b798ad (diff) | |
executor: add support for USB fuzzing on NetBSD
Diffstat (limited to 'executor/common_usb.h')
| -rw-r--r-- | executor/common_usb.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/executor/common_usb.h b/executor/common_usb.h index f14d6b9b1..3996b0e1c 100644 --- a/executor/common_usb.h +++ b/executor/common_usb.h @@ -684,7 +684,7 @@ static bool lookup_connect_response_out_generic(int fd, const struct vusb_connec } #endif // SYZ_EXECUTOR || __NR_syz_usb_connect -#if SYZ_EXECUTOR || __NR_syz_usb_connect_ath9k +#if GOOS_linux && (SYZ_EXECUTOR || __NR_syz_usb_connect_ath9k) // drivers/net/wireless/ath/ath9k/hif_usb.h #define ATH9K_FIRMWARE_DOWNLOAD 0x30 @@ -721,7 +721,7 @@ static bool lookup_connect_response_out_ath9k(int fd, const struct vusb_connect_ #endif // SYZ_EXECUTOR || __NR_syz_usb_connect_ath9k -#if SYZ_EXECUTOR || __NR_syz_usb_control_io +#if GOOS_linux && (SYZ_EXECUTOR || __NR_syz_usb_control_io) struct vusb_descriptor { uint8 req_type; @@ -820,9 +820,3 @@ static bool lookup_control_response(const struct vusb_descriptors* descs, const } #endif // SYZ_EXECUTOR || __NR_syz_usb_control_io - -#if GOOS_linux -#include "common_usb_linux.h" -#else -#error "unknown OS" -#endif // GOOS_linux |
