0c7584ad33
The overall goal of ObexFTP is to make mobile devices featuring the OBEX protocol and adhering to the OBEX FTP standard accessible by an open source implementation. The common usage for ObexFTP is to access your mobile phones memory to store and retrieve e.g. your phonebook, logos, ringtones, music, pictures and alike.
16 lines
437 B
Text
16 lines
437 B
Text
$NetBSD: patch-ab,v 1.1.1.1 2004/02/26 12:50:45 jmmv 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,
|
|
|
|
if(force) {
|
|
/* Send a break to get out of OBEX-mode */
|
|
+#ifdef TCSBRKP
|
|
if(ioctl(c->fd, TCSBRKP, 0) < 0) {
|
|
+#else
|
|
+ if(tcsendbreak(c->fd, 0) == -1) {
|
|
+#endif
|
|
DEBUG(1, "Unable to send break!\n");
|
|
}
|
|
sleep(1);
|