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/lua | |
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/lua')
-rw-r--r-- | src/lua/lua_compress.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lua/lua_compress.c b/src/lua/lua_compress.c index 5bebd0e0d..599a796e0 100644 --- a/src/lua/lua_compress.c +++ b/src/lua/lua_compress.c @@ -16,10 +16,16 @@ #include "lua_common.h" #include "unix-std.h" -#include "contrib/zstd/zstd.h" -#include "contrib/zstd/error_public.h" #include <zlib.h> +#ifdef SYS_ZSTD +# include "zstd.h" +# include "zstd_errors.h" +#else +# include "contrib/zstd/zstd.h" +# include "contrib/zstd/error_public.h" +#endif + /*** * @module rspamd_compress * This module contains compression/decompression routines (zstd and zlib currently) @@ -614,4 +620,4 @@ luaopen_compress (lua_State *L) lua_pop (L, 2); rspamd_lua_add_preload (L, "rspamd_zstd", lua_load_zstd); -}
\ No newline at end of file +} |