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/libserver/task.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/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 407f2c4d4..aae374c21 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -25,7 +25,6 @@ #include "stat_api.h" #include "unix-std.h" #include "utlist.h" -#include "contrib/zstd/zstd.h" #include "libserver/mempool_vars_internal.h" #include "libserver/cfg_file_private.h" #include "libmime/lang_detection.h" @@ -41,6 +40,12 @@ #include <math.h> +#ifdef SYS_ZSTD +# include "zstd.h" +#else +# include "contrib/zstd/zstd.h" +#endif + __KHASH_IMPL (rspamd_req_headers_hash, static inline, rspamd_ftok_t *, struct rspamd_request_header_chain *, 1, rspamd_ftok_icase_hash, rspamd_ftok_icase_equal) @@ -1981,4 +1986,4 @@ rspamd_worker_guard_handler (EV_P_ ev_io *w, int revents) return; } } -}
\ No newline at end of file +} |