diff --git a/resources/wfview.entitlements b/resources/wfview.entitlements
index c8de257..bd4d311 100644
--- a/resources/wfview.entitlements
+++ b/resources/wfview.entitlements
@@ -18,5 +18,7 @@
com.apple.security.network.server
+ com.apple.security.device.usb
+
diff --git a/usbcontroller.cpp b/usbcontroller.cpp
index ad7642a..b017894 100644
--- a/usbcontroller.cpp
+++ b/usbcontroller.cpp
@@ -47,7 +47,7 @@ void usbController::init()
else {
#if defined(__APPLE__) && HID_API_VERSION >= HID_API_MAKE_VERSION(0, 12, 0)
- hid_darwin_set_open_exclusive(1);
+ hid_darwin_set_open_exclusive(0);
#endif
qInfo(logUsbControl()) << "Found available HID devices (not all will be suitable for use):";
diff --git a/usbcontroller.h b/usbcontroller.h
index 6e29174..c103d94 100644
--- a/usbcontroller.h
+++ b/usbcontroller.h
@@ -22,6 +22,14 @@
#include "hidapi.h"
#endif
+#ifndef HID_API_MAKE_VERSION
+#define HID_API_MAKE_VERSION(mj, mn, p) (((mj) << 24) | ((mn) << 8) | (p))
+#endif
+#ifndef HID_API_VERSION
+#define HID_API_VERSION HID_API_MAKE_VERSION(HID_API_VERSION_MAJOR, HID_API_VERSION_MINOR, HID_API_VERSION_PATCH)
+#endif
+
+
#if defined(__APPLE__) && HID_API_VERSION >= HID_API_MAKE_VERSION(0, 12, 0)
#include
#endif