support cygwin build

This commit is contained in:
john30
2020-01-11 12:51:37 +01:00
parent f92a047c09
commit 7b8ceb7db5
+11
View File
@@ -280,6 +280,17 @@ void SerialDevice::checkDevice() {
}
}
#ifdef __CYGWIN__
#ifndef TCP_KEEPCNT
#define TCP_KEEPCNT 8
#endif
#ifndef TCP_KEEPINTVL
#define TCP_KEEPINTVL 150
#endif
#ifndef TCP_KEEPIDLE
#define TCP_KEEPIDLE 14400
#endif
#endif
result_t NetworkDevice::open() {
if (m_fd != -1) {