We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca0a569 + 9a29dde commit 412cb41Copy full SHA for 412cb41
Network/Socket/Options.hsc
@@ -299,6 +299,8 @@ pattern NoDelay = SockOpt (-1) (-1)
299
pattern UserTimeout :: SocketOption
300
#ifdef TCP_USER_TIMEOUT
301
pattern UserTimeout = SockOpt (#const IPPROTO_TCP) (#const TCP_USER_TIMEOUT)
302
+#elif defined(TCP_CONNECTIONTIMEOUT)
303
+pattern UserTimeout = SockOpt (#const IPPROTO_TCP) (#const TCP_CONNECTIONTIMEOUT)
304
#else
305
pattern UserTimeout = SockOpt (-1) (-1)
306
#endif
0 commit comments