]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.c
MinGW: Quickfix to make serial.c/ols.c compile.
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.c
index 7f44788e4a012d2a2742aaaaee894dffdc0f13c6..d95e0827bbc1fe6a0af283a131ffe1d70d535e62 100644 (file)
 #include <glib.h>
 #include <sigrok.h>
 
+#ifdef _WIN32
+#define O_NONBLOCK FIONBIO
+#endif
+
 #define NUM_PROBES                     32
 #define NUM_TRIGGER_STAGES             4
 #define TRIGGER_TYPES                  "01"