summaryrefslogtreecommitdiff
path: root/comms/openobex/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'comms/openobex/patches/patch-af')
-rw-r--r--comms/openobex/patches/patch-af31
1 files changed, 31 insertions, 0 deletions
diff --git a/comms/openobex/patches/patch-af b/comms/openobex/patches/patch-af
new file mode 100644
index 00000000000..2adf44218dc
--- /dev/null
+++ b/comms/openobex/patches/patch-af
@@ -0,0 +1,31 @@
+$NetBSD: patch-af,v 1.3 2006/07/09 09:27:52 xtraeme Exp $
+
+--- lib/btobex.c.orig 2006-07-09 10:36:43.000000000 +0200
++++ lib/btobex.c 2006-07-09 10:38:51.000000000 +0200
+@@ -37,7 +37,7 @@
+ #include <winsock.h>
+
+ #else /* _WIN32 */
+-/* Linux case */
++/* Linux/NetBSD case */
+
+ #include <string.h>
+ #include <unistd.h>
+@@ -46,8 +46,17 @@
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+
++#ifdef HAVE_NETBSD_BLUETOOTH
++#define rc_family bt_family
++#define rc_bdaddr bt_bdaddr
++#define rc_channel bt_channel
++#define sockaddr_rc sockaddr_bt
++#include <bluetooth.h>
++#include <netbt/rfcomm.h>
++#else
+ #include <bluetooth/bluetooth.h>
+ #include <bluetooth/rfcomm.h>
++#endif
+
+ #endif /* _WIN32 */
+