summaryrefslogtreecommitdiff
path: root/sysutils/netbt-hcidump/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/netbt-hcidump/patches/patch-ac')
-rw-r--r--sysutils/netbt-hcidump/patches/patch-ac41
1 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/netbt-hcidump/patches/patch-ac b/sysutils/netbt-hcidump/patches/patch-ac
new file mode 100644
index 00000000000..83f7d7dc730
--- /dev/null
+++ b/sysutils/netbt-hcidump/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.1.1.1.8.2 2014/12/27 11:59:22 plunky Exp $
+
+--- bluetooth/hci.h.orig 2010-09-30 08:53:08.000000000 +0000
++++ bluetooth/hci.h
+@@ -39,6 +39,7 @@ extern "C" {
+ #define HCI_MAX_EVENT_SIZE 260
+ #define HCI_MAX_FRAME_SIZE (HCI_MAX_ACL_SIZE + 4)
+
++#if 0
+ /* HCI dev events */
+ #define HCI_DEV_REG 1
+ #define HCI_DEV_UNREG 2
+@@ -101,6 +102,7 @@ enum {
+ #define HCIUNBLOCKADDR _IOW('H', 231, int)
+
+ #define HCIINQUIRY _IOR('H', 240, int)
++#endif
+
+ #ifndef __NO_HCI_DEFS
+
+@@ -2232,6 +2234,7 @@ typedef struct {
+
+ #endif /* _NO_HCI_DEFS */
+
++#if 0
+ /* HCI Socket options */
+ #define HCI_DATA_DIR 1
+ #define HCI_FILTER 2
+@@ -2339,6 +2342,12 @@ struct hci_inquiry_req {
+ uint8_t num_rsp;
+ };
+ #define IREQ_CACHE_FLUSH 0x0001
++#else
++#define HCI_CMSG_DIR SCM_HCI_DIRECTION
++#define HCI_CMSG_TSTAMP SCM_TIMESTAMP
++#define HCI_DEV_NONE NULL
++#define HCI_DATA_DIR SO_HCI_DIRECTION
++#endif
+
+ #ifdef __cplusplus
+ }