summaryrefslogtreecommitdiff
path: root/comms/openobex/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'comms/openobex/patches/patch-aa')
-rw-r--r--comms/openobex/patches/patch-aa38
1 files changed, 38 insertions, 0 deletions
diff --git a/comms/openobex/patches/patch-aa b/comms/openobex/patches/patch-aa
new file mode 100644
index 00000000000..1ce49a9e904
--- /dev/null
+++ b/comms/openobex/patches/patch-aa
@@ -0,0 +1,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 */