diff options
Diffstat (limited to 'comms/openobex/patches/patch-ag')
-rw-r--r-- | comms/openobex/patches/patch-ag | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/comms/openobex/patches/patch-ag b/comms/openobex/patches/patch-ag new file mode 100644 index 00000000000..c98d8a4d63c --- /dev/null +++ b/comms/openobex/patches/patch-ag @@ -0,0 +1,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_* */ + |