From 243c8dfb41cb1fbcb5f7628a55d52cc3242527f8 Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Tue, 8 Sep 2020 09:26:16 -0400 Subject: [PATCH] Add include guards for init_numThreads() --- programs/zstdcli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index b1e8d6635..797f732d4 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -618,6 +618,7 @@ static int init_cLevel(void) { return ZSTDCLI_CLEVEL_DEFAULT; } +#ifdef ZSTD_MULTITHREAD static unsigned init_numThreads(void) { const char* const env = getenv(ENV_NUMTHREADS); if (env != NULL) { @@ -636,6 +637,7 @@ static unsigned init_numThreads(void) { return ZSTDCLI_NUMTHREADS_DEFAULT; } +#endif #define NEXT_FIELD(ptr) { \ if (*argument == '=') { \