]> sigrok.org Git - libsigrok.git/commitdiff
USB: On Windows, assume G_IO_IN for the event mask
authorDaniel Elstner <redacted>
Mon, 7 Sep 2015 06:50:29 +0000 (08:50 +0200)
committerDaniel Elstner <redacted>
Mon, 7 Sep 2015 22:08:16 +0000 (00:08 +0200)
src/usb.c

index 60d828ad3d325b012d1607359688b81c376a355f..cc63b86096a65683f4d97ebb52663ae654757a22 100644 (file)
--- 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);