]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Support building hs_cache_backend without Hyperscan
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 11 Jan 2026 15:47:29 +0000 (15:47 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 11 Jan 2026 15:47:29 +0000 (15:47 +0000)
src/libserver/hs_cache_backend.c

index aeb5195a9e38f6978df27d7bb2e109346633dc8d..576d3da3f736ef094ae8e37b8eaf34c1c465c335 100644 (file)
 #include "libserver/redis_pool.h"
 #ifdef WITH_HYPERSCAN
 #include "libserver/hyperscan_tools.h"
+#else
+/* Fallback when hyperscan is not available */
+#define msg_debug_hyperscan(...) \
+       do {                         \
+       } while (0)
 #endif
 
 static struct rspamd_hs_cache_backend *global_hs_cache_backend = NULL;