From e5d2059d96f76d50597e9dcbfe78f48b79a447cd Mon Sep 17 00:00:00 2001 From: N-Storm Date: Fri, 31 May 2024 02:15:28 +0300 Subject: [PATCH] Software: fix building on macOS --- software/src/digilivolo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/software/src/digilivolo.c b/software/src/digilivolo.c index 59d4a61..296bd57 100644 --- a/software/src/digilivolo.c +++ b/software/src/digilivolo.c @@ -33,6 +33,10 @@ #define dl_sleep_ms(ms) usleep(ms * 1000) #endif +#if defined(__APPLE__) && HID_API_VERSION >= HID_API_MAKE_VERSION(0, 12, 0) +#include +#endif + #include "defs.h" #include "args.h"