From: Peter Maydell <peter.maydell@linaro.org>
To: Stefan Weil <sw@weilnetz.de>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2] usb: Support compilation without poll.h
Date: Wed, 11 May 2016 10:14:58 +0100 [thread overview]
Message-ID: <CAFEAcA8g7H=HzvRFgiG6K4aUOh0zzr8fyVbodMwHQaTHWU8r-Q@mail.gmail.com> (raw)
In-Reply-To: <1458630800-10088-1-git-send-email-sw@weilnetz.de>
On 22 March 2016 at 07:13, Stefan Weil <sw@weilnetz.de> wrote:
> This is a hack to support compilation with Mingw-w64 which provides
> a libusb-1.0 package, but no poll.h.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> v2: Modified after feedback from Gerd.
> static int usb_host_init(void)
> {
> +#ifndef CONFIG_WIN32
> const struct libusb_pollfd **poll;
> +#endif
> int i, rc;
>
> if (ctx) {
> @@ -235,7 +243,9 @@ static int usb_host_init(void)
> return -1;
> }
> libusb_set_debug(ctx, loglevel);
> -
> +#ifdef CONFIG_WIN32
> + /* FIXME: add support for Windows. */
> +#else
> libusb_set_pollfd_notifiers(ctx, usb_host_add_fd,
> usb_host_del_fd,
> ctx);
> @@ -246,6 +256,7 @@ static int usb_host_init(void)
> }
> }
> free(poll);
> +#endif
> return 0;
Would it make more sense to just disable this functionality
entirely rather than leaving it compiling but not working?
thanks
-- PMM
next prev parent reply other threads:[~2016-05-11 9:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 7:13 [Qemu-devel] [PATCH v2] usb: Support compilation without poll.h Stefan Weil
2016-05-11 8:38 ` Gerd Hoffmann
2016-05-11 9:14 ` Peter Maydell [this message]
2016-05-11 9:54 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFEAcA8g7H=HzvRFgiG6K4aUOh0zzr8fyVbodMwHQaTHWU8r-Q@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).