From 88b47c021c371d500c99088b65a6782b822f10d9 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 25 Feb 2016 11:10:28 -0500 Subject: [PATCH] cygwin inherits winsock broadcast behavior --- src/ioc/rsrv/caservertask.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ioc/rsrv/caservertask.c b/src/ioc/rsrv/caservertask.c index c31486c30..b2956d948 100644 --- a/src/ioc/rsrv/caservertask.c +++ b/src/ioc/rsrv/caservertask.c @@ -652,7 +652,7 @@ int rsrv_init (void) } #endif -#if !defined(_WIN32) +#if !(defined(_WIN32) || defined(__CYGWIN32__)) /* An oddness of BSD sockets (not winsock) is that binding to * INADDR_ANY will receive unicast and broadcast, but binding to * a specific interface address receives only unicast. The trick @@ -692,7 +692,7 @@ int rsrv_init (void) ellFree(&bcastList); } -#endif /* !defined(_WIN32) */ +#endif /* !(defined(_WIN32) || defined(__CYGWIN32__)) */ ellAdd(&servers, &conf->node); @@ -710,7 +710,7 @@ int rsrv_init (void) epicsEventMustWait(casudp_startStopEvent); -#if !defined(_WIN32) +#if !(defined(_WIN32) || defined(__CYGWIN32__)) if(conf->udpbcast != INVALID_SOCKET) { conf->startbcast = 1; @@ -722,7 +722,7 @@ int rsrv_init (void) conf->startbcast = 0; } -#endif /* !defined(_WIN32) */ +#endif /* !(defined(_WIN32) || defined(__CYGWIN32__)) */ havesometcp = 1; continue;