diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-02-06 11:58:05 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-02-06 11:58:05 -0500 |
commit | a03488954c15b2fe2643d19c5530d9c927665b6f (patch) | |
tree | 2f1eebc0af8230b3588ff13bb1f1d85f8f0fef07 /src | |
parent | a77a366b87fb04a878392284241fe72850b4dd88 (diff) | |
download | tor-a03488954c15b2fe2643d19c5530d9c927665b6f.tar.gz tor-a03488954c15b2fe2643d19c5530d9c927665b6f.zip |
Add configure option to control ZSTD_STATIC_LINKING_ONLY
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compress_zstd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c index 96906efb9b..0c3e7104f0 100644 --- a/src/common/compress_zstd.c +++ b/src/common/compress_zstd.c @@ -18,12 +18,12 @@ #include "compress.h" #include "compress_zstd.h" +#ifdef ENABLE_ZSTD_ADVANCED_APIS /* This is a lie, but we make sure it doesn't get us in trouble by wrapping * all invocations of zstd's static-only functions in a check to make sure - * that the compile-time version matches the run-time version. - * - * Note: Make sure that this file still builds with this macro disabled. */ + * that the compile-time version matches the run-time version. */ #define ZSTD_STATIC_LINKING_ONLY +#endif #ifdef HAVE_ZSTD #include <zstd.h> @@ -499,7 +499,7 @@ tor_zstd_init(void) void tor_zstd_warn_if_version_mismatched(void) { -#ifdef HAVE_ZSTD +#if defined(HAVE_ZSTD) && defined(ENABLE_ZSTD_ADVANCED_APIS) if (! tor_zstd_can_use_static_apis()) { char header_version[VERSION_STR_MAX_LEN]; char runtime_version[VERSION_STR_MAX_LEN]; |