From 0e0ee16ea69ae5d9eaf246f39e4c420a102d7046 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 31 Mar 2018 11:42:46 -0700 Subject: [PATCH] Correctly fix build without HID support Suggested by: Linus Torvalds Signed-off-by: Dirk Hohndel --- src/usbhid.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/usbhid.c b/src/usbhid.c index 52adf1f..f07b866 100644 --- a/src/usbhid.c +++ b/src/usbhid.c @@ -848,4 +848,12 @@ out: return status; } +#else /* !USBHID */ + +dc_status_t +dc_usbhid_custom_io (dc_context_t *context, unsigned int vid, unsigned int pid) +{ + return DC_STATUS_UNSUPPORTED; +} + #endif