summaryrefslogtreecommitdiff
path: root/comms/openobex/patches/patch-ac
blob: 5b78c48a94e8bb7ea8fbe1d9e17302ec51310725 (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
25
26
27
$NetBSD: patch-ac,v 1.2 2006/07/09 09:27:52 xtraeme Exp $

--- lib/obex_transport.h.orig	2006-07-09 10:19:01.000000000 +0200
+++ lib/obex_transport.h	2006-07-09 10:20:53.000000000 +0200
@@ -39,7 +39,10 @@
 #ifdef HAVE_IRDA
 #include "irda_wrap.h"
 #endif /*HAVE_IRDA*/
-#ifdef HAVE_BLUETOOTH
+#ifdef HAVE_NETBSD_BLUETOOTH
+#include <bluetooth.h>
+#include <netbt/rfcomm.h>
+#elif defined(HAVE_BLUETOOTH)
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/rfcomm.h>
 #endif /*HAVE_BLUETOOTH*/
@@ -54,7 +57,9 @@
 	struct sockaddr_irda irda;
 #endif /*HAVE_IRDA*/
 	struct sockaddr_in   inet;
-#ifdef HAVE_BLUETOOTH
+#ifdef HAVE_NETBSD_BLUETOOTH
+	struct sockaddr_bt   rfcomm;
+#elif defined(HAVE_BLUETOOTH)
 	struct sockaddr_rc   rfcomm;
 #endif /*HAVE_BLUETOOTH*/
 #ifdef HAVE_USB