|
Removed
Link Here
|
| 1 |
--- vendor/github.com/karalabe/hid/hid_enabled.go.orig 2026-02-04 22:48:45 UTC |
| 2 |
+++ vendor/github.com/karalabe/hid/hid_enabled.go |
| 3 |
@@ -31,7 +31,7 @@ specifically for the linux platform, below. |
| 4 |
#cgo windows LDFLAGS: -lsetupapi |
| 5 |
|
| 6 |
#cgo freebsd CFLAGS: -DOS_FREEBSD |
| 7 |
-#cgo freebsd LDFLAGS: -lusb |
| 8 |
+#cgo freebsd LDFLAGS: -lhidapi -lusb |
| 9 |
|
| 10 |
#cgo openbsd CFLAGS: -DOS_OPENBSD |
| 11 |
|
| 12 |
@@ -64,8 +64,9 @@ specifically for the linux platform, below. |
| 13 |
#elif OS_WINDOWS |
| 14 |
#include "hidapi/windows/hid.c" |
| 15 |
#elif OS_FREEBSD |
| 16 |
- #include <libusb.h> |
| 17 |
- #include "hidapi/libusb/hid.c" |
| 18 |
+ #include <stdlib.h> |
| 19 |
+ #include <wchar.h> |
| 20 |
+ #include <hidapi/hidapi.h> |
| 21 |
#elif DOS_OPENBSD |
| 22 |
#include "hidapi/libusb/hid.c" |
| 23 |
#endif |