summaryrefslogtreecommitdiff
path: root/comms/obexftp/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'comms/obexftp/patches/patch-ab')
-rw-r--r--comms/obexftp/patches/patch-ab27
1 files changed, 15 insertions, 12 deletions
diff --git a/comms/obexftp/patches/patch-ab b/comms/obexftp/patches/patch-ab
index fae546a108d..496247e04a0 100644
--- a/comms/obexftp/patches/patch-ab
+++ b/comms/obexftp/patches/patch-ab
@@ -1,16 +1,19 @@
-$NetBSD: patch-ab,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $
+$NetBSD: patch-ab,v 1.2 2006/07/17 12:29:57 xtraeme Exp $
---- cobexpe/cobex_pe.c.orig 2003-04-10 00:37:02.000000000 +0200
-+++ cobexpe/cobex_pe.c
-@@ -151,7 +151,11 @@ static void cobex_pe_cleanup(cobex_t *c,
+--- multicobex/multi_cobex.c.orig 2005-11-24 15:55:11.000000000 +0100
++++ multicobex/multi_cobex.c 2006-07-09 12:21:14.000000000 +0200
+@@ -49,6 +49,14 @@
+ #include <termios.h>
+ #endif
- if(force) {
- /* Send a break to get out of OBEX-mode */
-+#ifdef TCSBRKP
- if(ioctl(c->fd, TCSBRKP, 0) < 0) {
++#ifdef HAVE_BLUETOOTH
++#ifdef __NetBSD__
++#include <bluetooth.h>
+#else
-+ if(tcsendbreak(c->fd, 0) == -1) {
++#include <bluetooth/bluetooth.h>
+#endif
- DEBUG(1, "Unable to send break!\n");
- }
- sleep(1);
++#endif /* HAVE_BLUETOOTH */
++
+ #include <openobex/obex.h>
+ #include "multi_cobex.h"
+ #include "multi_cobex_private.h"