Skip to content

Commit

Permalink
Add Darwin support for SO_SNDTIMEO
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRivers committed Nov 6, 2024
1 parent 74a821f commit 9db1a66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asyn/drvAsynSerial/drvAsynIPPort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9db1a66

Please sign in to comment.