summaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index be0980102..6474188cc 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -2011,6 +2011,11 @@ proxy_accept_socket (gint fd, short what, void *arg)
rspamd_inet_address_get_port (addr));
#ifdef TCP_NODELAY
+
+ #ifndef SOL_TCP
+ #define SOL_TCP IPPROTO_TCP
+ #endif
+
gint sopt = 1;
if (setsockopt (nfd, SOL_TCP, TCP_NODELAY, &sopt, sizeof (sopt)) == -1) {