]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add include guards for init_numThreads()
authorsenhuang42 <senhuang96@fb.com>
Tue, 8 Sep 2020 13:26:16 +0000 (09:26 -0400)
committersenhuang42 <senhuang96@fb.com>
Tue, 8 Sep 2020 13:26:16 +0000 (09:26 -0400)
programs/zstdcli.c

index b1e8d6635676990d4537e8bfd9b22fba5d294234..797f732d46c46f83824138f8f8c63b7d41fc4934 100644 (file)
@@ -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 == '=') {       \