From 7b8ceb7db5972f203c6b3479758b16668f3a9c09 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 11 Jan 2020 12:51:37 +0100 Subject: [PATCH] support cygwin build --- src/lib/ebus/device.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/ebus/device.cpp b/src/lib/ebus/device.cpp index 0cd071bd..78ec839d 100755 --- a/src/lib/ebus/device.cpp +++ b/src/lib/ebus/device.cpp @@ -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) {