blob: c98d8a4d63c2a28b839551a68e30c7579b30ee55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ag,v 1.1 2009/08/07 12:18:33 plunky Exp $
fix BSD bluetooth support (this is submitted upstream)
--- lib/bluez_compat.h.orig 2009-02-08 18:30:23.000000000 +0000
+++ lib/bluez_compat.h
@@ -53,6 +53,8 @@ static bdaddr_t bluez_compat_bdaddr_any
#define rc_family rfcomm_family
#define rc_bdaddr rfcomm_bdaddr
#define rc_channel rfcomm_channel
+#define BDADDR_ANY NG_HCI_BDADDR_ANY
+#define BTPROTO_RFCOMM BLUETOOTH_PROTO_RFCOMM
#elif defined(HAVE_BLUETOOTH_NETBSD)
#include <bluetooth.h>
@@ -61,7 +63,7 @@ static bdaddr_t bluez_compat_bdaddr_any
#define rc_family bt_family
#define rc_bdaddr bt_bdaddr
#define rc_channel bt_channel
-#define BDADDR_ANY NG_HCI_BDADDR_ANY
+#define bacpy(dst,src) memcpy((dst),(src),sizeof(bdaddr_t))
#endif /* HAVE_BLUETOOTH_* */
|