From owner-freebsd-ports Sun Jan 21 11:50:23 2001 Delivered-To: freebsd-ports@freebsd.org Received: from green.dyndns.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 3BCFF37B402; Sun, 21 Jan 2001 11:49:56 -0800 (PST) Received: from localhost (ocmcma@localhost [127.0.0.1]) by green.dyndns.org (8.11.1/8.11.1) with ESMTP id f0LJnPc80046; Sun, 21 Jan 2001 14:49:32 -0500 (EST) (envelope-from green@FreeBSD.org) Message-Id: <200101211949.f0LJnPc80046@green.dyndns.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Yukihiro Nakai Cc: green@FreeBSD.org, ports@FreeBSD.org, Josh Elsasser , jclarke@cisco.com Subject: Re: snes9x ports for 4.2-STABLE In-Reply-To: Message from Yukihiro Nakai of "Mon, 22 Jan 2001 03:30:33 +0900." <200101211824.NAA22154@lacrosse.corp.redhat.com> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 21 Jan 2001 14:49:25 -0500 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yukihiro Nakai wrote: > > Hi, > > The files/patch-af in ports/emulators/snes9x mave usb support, > it seems work on 5.0-current, but not on 4.2-STABLE. > (I got many bug-report mails from users.) > This is because the function argument is different between them. > > In /usr/include/libusb.h, > > 5.0-current: > int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k)); > > 4.2-STABLE : > int hid_report_size __P((report_desc_t d, enum hid_kind k, int *idp)); > > So this new patch-af that I append here is needed to compile snes9x > on 4.2-STABLE. > > I will add 5.0 macros and commit this after some tests... Good job! Shall I assume that now you're not busy and will do all the updating for snes9x? I did feel that it sorely needed USB device support, but I'm sorry I neglected to notice the difference in API between -STABLE and -CURRENT. Maybe what really should be done is that the API for libusb should be merged soon, anyway. I suppose that #define hid_report_size(a, b, c) hid_report_size(a, *c, b) should do fine, but I never found a __FreeBSD_version to associate with the libusb version bump.... -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message