Skip to content

Commit f70c2ce

Browse files
committed
Fix build on Mac
Recent libusb seems to have removed extra symlink `libusb-1.0/libusb.h`, which breaks build on Mac. TODO: consider always using `<libusb.h>`, but that would put hard dependency on `pkg-config` usage.
1 parent 4deae17 commit f70c2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uhubctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <unistd.h>
3030
#endif
3131

32-
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(_WIN32)
32+
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_WIN32)
3333
#include <libusb.h>
3434
#else
3535
#include <libusb-1.0/libusb.h>

0 commit comments

Comments
 (0)