mirror of https://github.com/nirenjan/libx52.git
Conditionalize use of ELIBACC on __linux__ as it is linux-specific
parent
95e933e27c
commit
aaab4c6b1d
|
@ -55,7 +55,11 @@ libx52_device* libx52_init(void)
|
||||||
|
|
||||||
rc = libusb_init(&(x52_dev->ctx));
|
rc = libusb_init(&(x52_dev->ctx));
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
#if defined(__linux__)
|
||||||
errno = ELIBACC;
|
errno = ELIBACC;
|
||||||
|
#else
|
||||||
|
errno = ENOENT;
|
||||||
|
#endif
|
||||||
goto err_recovery;
|
goto err_recovery;
|
||||||
}
|
}
|
||||||
libusb_set_debug(x52_dev->ctx, 3);
|
libusb_set_debug(x52_dev->ctx, 3);
|
||||||
|
|
Loading…
Reference in New Issue