summaryrefslogtreecommitdiff
path: root/comms/openobex/files/patch-src-obex_transport.h
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-23 19:57:59 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-23 19:57:59 +0000
commitcae842bacf2b26e4674d7c2c6d46cc91f05493ac (patch)
tree5ffde29db73b3158aebf997caf8da34daaee6f76 /comms/openobex/files/patch-src-obex_transport.h
parent- only shared libraries should be build with -fPIC on amd64 and ia64 (diff)
Add openobex, a library for OBEX (Object Exchange), a protocol to exchange
a data over infrared and Bluetooth. This port is adapted to work with FreeBSD Bluetooth stack. PR: ports/64596 Submitted by: Guido Falsi <mad@madpilot.net>
Notes
Notes: svn path=/head/; revision=105079
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*/