]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix build on FreeBSD 1791/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 8 Aug 2017 05:57:35 +0000 (08:57 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 8 Aug 2017 05:57:35 +0000 (08:57 +0300)
src/rspamd_proxy.c

index be0980102594f3a623a6677b159e7cc5e9fca2c4..6474188cc9ed9af20e2ffb11203901f24327d131 100644 (file)
@@ -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) {