summaryrefslogtreecommitdiffstats
path: root/syshead.h
diff options
context:
space:
mode:
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index 9737a4b..d25b82c 100644
--- a/syshead.h
+++ b/syshead.h
@@ -478,4 +478,11 @@ socket_defined (const socket_descriptor_t sd)
*/
#define TIME_BACKTRACK_PROTECTION 1
+/*
+ * Is non-blocking connect() supported?
+ */
+#if defined(HAVE_GETSOCKOPT) && defined(SOL_SOCKET) && defined(SO_ERROR) && defined(EINPROGRESS) && defined(ETIMEDOUT)
+#define CONNECT_NONBLOCK
+#endif
+
#endif