Date: Mon, 25 Oct 2010 10:41:33 +0100 (BST) From: Iain Hibbert <plunky@rya-online.net> To: Maksim Yevmenkin <maksim.yevmenkin@gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: obexapp print stream statistics after transfer Message-ID: <1287999693.989346.1023.nullmailer@galant.ukfsn.org> In-Reply-To: <AANLkTi=V8pm51C4D58KRsiz0FfhOiU=NnUYGQJdeUwxA@mail.gmail.com> References: <1287509041.022618.4884.nullmailer@galant.ukfsn.org> <AANLkTimVZRNp8oh9%2BVQ6rPbXXFjdNqpgSQ2AqWjqATJY@mail.gmail.com> <1287561876.893861.6837.nullmailer@galant.ukfsn.org> <AANLkTi=V8pm51C4D58KRsiz0FfhOiU=NnUYGQJdeUwxA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] --- 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1287999693.989346.1023.nullmailer>
