aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index f5bc5f68e..267760c03 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -36,7 +36,6 @@
#include "libserver/milter.h"
#include "libserver/milter_internal.h"
#include "libmime/lang_detection.h"
-#include "contrib/zstd/zstd.h"
#include <math.h>
@@ -44,6 +43,12 @@
#include <netinet/tcp.h> /* for TCP_NODELAY */
#endif
+#ifdef SYS_ZSTD
+# include "zstd.h"
+#else
+# include "contrib/zstd/zstd.h"
+#endif
+
/* Rotate keys each minute by default */
#define DEFAULT_ROTATION_TIME 60.0
#define DEFAULT_RETRIES 5