aboutsummaryrefslogtreecommitdiff
path: root/comms/openobex/files/patch-src-obex_transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'comms/openobex/files/patch-src-obex_transport.h')
-rw-r--r--comms/openobex/files/patch-src-obex_transport.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/comms/openobex/files/patch-src-obex_transport.h b/comms/openobex/files/patch-src-obex_transport.h
new file mode 100644
index 000000000000..19157b1a42bc
--- /dev/null
+++ b/comms/openobex/files/patch-src-obex_transport.h
@@ -0,0 +1,36 @@
+--- src/obex_transport.h.orig Mon Mar 22 18:02:08 2004
++++ src/obex_transport.h Mon Mar 22 18:05:08 2004
+@@ -40,8 +40,12 @@
+ #include "irda_wrap.h"
+ #endif /*HAVE_IRDA*/
+ #ifdef HAVE_BLUETOOTH
++#ifdef HAVE_BLUETOOTH_NETGRAPH
++#include <bluetooth.h>
++#else /*HAVE_BLUETOOTH_NETGRAPH*/
+ #include <bluetooth/bluetooth.h>
+ #include <bluetooth/rfcomm.h>
++#endif /*HAVE_BLUETOOTH_NETGRAPH*/
+ #endif /*HAVE_BLUETOOTH*/
+
+ #include "obex_main.h"
+@@ -52,7 +56,11 @@
+ #endif /*HAVE_IRDA*/
+ struct sockaddr_in inet;
+ #ifdef HAVE_BLUETOOTH
++#ifdef HAVE_BLUETOOTH_NETGRAPH
++ struct sockaddr_rfcomm rfcomm;
++#else /*HAVE_BLUETOOTH_NETGRAPH*/
+ struct sockaddr_rc rfcomm;
++#endif /*HAVE_BLUETOOTH_NETGRAPH*/
+ #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*/