aboutsummaryrefslogtreecommitdiffstats
path: root/comms/fldigi/files/patch-src_cmedia_hid__lin.cxx
blob: 5ba53c2386b930086f0be5e70921864093b1ad8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/cmedia/hid_lin.cxx.orig	2023-08-04 01:13:37 UTC
+++ src/cmedia/hid_lin.cxx
@@ -35,10 +35,20 @@
 #include <fcntl.h>
 #include <poll.h>
 
+#ifdef __FreeBSD__
+typedef unsigned short uint16_t;
+typedef unsigned char __u8;
+typedef unsigned long __u32;
+#include <dev/hid/hidraw.h>
+/* These are from linux */
+#define BUS_USB			0x03
+#define BUS_BLUETOOTH		0x05
+#else
 /* Linux */
 #include <linux/hidraw.h>
 #include <linux/version.h>
 #include <linux/input.h>
+#endif
 #include <libudev.h>
 
 #include "hidapi.h"