From 9db1a6644a4a66015e2eeaabbeccccd442edd9ed Mon Sep 17 00:00:00 2001 From: Mark Rivers Date: Wed, 6 Nov 2024 11:34:12 -0600 Subject: [PATCH] Add Darwin support for SO_SNDTIMEO --- asyn/drvAsynSerial/drvAsynIPPort.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/asyn/drvAsynSerial/drvAsynIPPort.c b/asyn/drvAsynSerial/drvAsynIPPort.c index b5dbb75f..0c8b8c07 100644 --- a/asyn/drvAsynSerial/drvAsynIPPort.c +++ b/asyn/drvAsynSerial/drvAsynIPPort.c @@ -86,8 +86,9 @@ #endif /* Linux after version 2.3.31 (2001) supports SO_SNDTIMEO for connect() calls. It uses a timeval argument. - * Windows supports SO_SNDTIMEO but it takes a DWORD argument and does not appear to apply to connect() calls. */ -#if defined(linux) + * Windows supports SO_SNDTIMEO but it takes a DWORD argument and does not appear to apply to connect() calls. + * Darwin supports SO_SNDTIMEO but the documentation is not clear whether it applies to connect() calls. */ +#if defined(linux) || defined(darwin) # define USE_CONNECTTIMEOUT #endif