diff options
author | Duncan Bellamy <dunk@denkimushi.com> | 2021-05-24 14:17:34 +0100 |
---|---|---|
committer | Duncan Bellamy <dunk@denkimushi.com> | 2021-05-29 09:02:05 +0100 |
commit | ab72e9d492987ff27a480bdc5011b447c2ada520 (patch) | |
tree | d8ed9e63be652f4c1c0c733280b6873f5b4610a2 /src/rspamd_proxy.c | |
parent | ab8882972d32c737afeda1902f96879f75f0a512 (diff) | |
download | rspamd-ab72e9d492987ff27a480bdc5011b447c2ada520.tar.gz rspamd-ab72e9d492987ff27a480bdc5011b447c2ada520.zip |
[Minor] change headers for zstd depending on bundled or system used
follow on patch from #3764
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 7 |
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 |