#include "libsigrok-internal.h"
#include "ols.h"
-#ifdef _WIN32
-#define O_NONBLOCK FIONBIO
-#endif
-
#define SERIALCOMM "115200/8n1"
static const int hwcaps[] = {
* have a match.
*/
sr_info("ols: probing %s .", conn);
- if (serial_open(serial, O_RDWR | O_NONBLOCK) != SR_OK)
+ if (serial_open(serial, SERIAL_RDWR | SERIAL_NONBLOCK) != SR_OK)
return NULL;
ret = SR_OK;
devc = sdi->priv;
- if (serial_open(devc->serial, O_RDWR) != SR_OK)
+ if (serial_open(devc->serial, SERIAL_RDWR) != SR_OK)
return SR_ERR;
sdi->status = SR_ST_ACTIVE;