summaryrefslogtreecommitdiff
path: root/comms/openobex/patches/patch-aa
blob: 1ce49a9e90416083beca08dc3a4cd656da950c78 (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
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-aa,v 1.1 2006/07/02 18:16:53 xtraeme Exp $

--- src/obex_transport.h.orig	2003-10-01 13:17:13.000000000 +0200
+++ src/obex_transport.h	2006-07-02 18:51:48.000000000 +0200
@@ -39,7 +39,11 @@
 #ifdef HAVE_IRDA
 #include "irda_wrap.h"
 #endif /*HAVE_IRDA*/
-#ifdef HAVE_BLUETOOTH
+
+#if defined(HAVE_BLUETOOTH) && defined(__NetBSD__)
+#include <bluetooth.h>
+#include <netbt/rfcomm.h>
+#elif defined(HAVE_BLUETOOTH)
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/rfcomm.h>
 #endif /*HAVE_BLUETOOTH*/
@@ -52,7 +56,11 @@
 #endif /*HAVE_IRDA*/
 	struct sockaddr_in   inet;
 #ifdef HAVE_BLUETOOTH
+#ifdef __NetBSD__
+	struct sockaddr_bt rfcomm;
+#else
 	struct sockaddr_rc   rfcomm;
+#endif
 #endif /*HAVE_BLUETOOTH*/
 } saddr_t;
 
@@ -76,7 +84,4 @@
 int obex_transport_read(obex_t *self, int count, uint8_t *buf, int buflen);
 
 
-#endif OBEX_TRANSPORT_H
-
-
-
+#endif  /* OBEX_TRANSPORT_H */