From 154ad4522230cb07603ee5608f9a7aaf5a12d17f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Oct 2025 08:49:50 +0100 Subject: [PATCH] [Fix] Add platform check for netinet/tcp.h include Wrap netinet/tcp.h include in HAVE_NETINET_TCP_H check for better portability across different platforms that may not have this header. --- src/plugins/fuzzy_check.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index a744d2c209..3a0270807f 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -49,6 +49,10 @@ #include #include "libutil/libev_helper.h" +#ifdef HAVE_NETINET_TCP_H +#include /* for TCP_NODELAY */ +#endif + #define DEFAULT_SYMBOL "R_FUZZY_HASH" #define RSPAMD_FUZZY_SYMBOL_FORBIDDEN "FUZZY_FORBIDDEN" #define RSPAMD_FUZZY_SYMBOL_RATELIMITED "FUZZY_RATELIMITED" -- 2.47.3