From: Daniel Elstner Date: Mon, 7 Sep 2015 06:50:29 +0000 (+0200) Subject: USB: On Windows, assume G_IO_IN for the event mask X-Git-Tag: libsigrok-0.4.0~332 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1b0c6b6d1539b7b49bd1d6cdfab13feb8ddfd795;p=libsigrok.git USB: On Windows, assume G_IO_IN for the event mask --- diff --git a/src/usb.c b/src/usb.c index 60d828ad..cc63b860 100644 --- a/src/usb.c +++ b/src/usb.c @@ -214,7 +214,11 @@ SR_PRIV int usb_source_add(struct sr_session *session, struct sr_context *ctx, #else pollfds[i].fd = lupfd[i]->fd; #endif +#ifdef G_OS_WIN32 + pollfds[i].events = G_IO_IN; +#else pollfds[i].events = lupfd[i]->events; +#endif pollfds[i].revents = 0; } free(lupfd);