On Thu, 21 Oct 2010, Maksim Yevmenkin wrote:

> thanks for your patches, Iain. please find attached combined patch.
> please let me know if this works, and i will commit and release next
> version

one more suggestion attached: bt_devaddr() is available in recent versions
of FreeBSD and perhaps some other OS (OpenBSD at least though I don't see
obexapp in their ports tree) so use a different definition to include its
use..

(I don't know if you can add something to compat.h for FreeBSD?)

iain
--- compat.h.orig       2007-03-12 21:19:30.000000000 +0000
+++ compat.h    2010-10-25 10:30:55.000000000 +0100
@@ -44,6 +44,8 @@
 #define rfcomm_channel         bt_channel
 #define rfcomm_len             bt_len
 #define rfcomm_family          bt_family
+
+#define HAVE_BT_DEVADDR                1
 #endif /* __NetBSD__ */
 
 #endif /* _COMPAT_H_ */
--- main.c.orig 2010-10-22 07:29:06.000000000 +0100
+++ main.c      2010-10-25 10:31:26.000000000 +0100
@@ -135,7 +135,7 @@ main(int argc, char *argv[])
                        break;
 
                case 'A':
-#ifdef __NetBSD__
+#ifdef HAVE_BT_DEVADDR
                        if (!bt_devaddr(optarg, &context.laddr))
                                err(1, "%s", optarg);
 #else
@@ -149,7 +149,7 @@ main(int argc, char *argv[])
                                memcpy(&context.laddr, he->h_addr,
                                                sizeof(context.laddr));
                        }
-#endif /* __NetBSD__ */
+#endif /* HAVE_BT_DEVADDR */
                        break;
 
                case 'c': /* client */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth
To unsubscribe, send any mail to "[email protected]"

Reply via email to