]> git.ipfire.org Git - thirdparty/zstd.git/commit
cli: fix for no-MT mode
authorYann Collet <cyan@fb.com>
Wed, 17 Jan 2018 01:28:11 +0000 (17:28 -0800)
committerYann Collet <cyan@fb.com>
Wed, 17 Jan 2018 01:28:11 +0000 (17:28 -0800)
commit10c213761ac8714bfa9b9e6cf70648ec458308e8
treeeecc1f96cb0879894b5d7bb904f1474074106054
parent1dba98d563d81fb42b4ac575e70eaf52654bbf8e
cli: fix for no-MT mode

when cli is compiled without MT support,
invoking ZSTD_p_nonBlockingMode result in an error code.

This patch only sets ZSTD_p_nonBlockingMode when ZSTD_MULTITHREAD is set, meaning there is MT support.

The error code could also be intentionnally ignored (there is no side effect).
programs/fileio.c