mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Add a missing test for TUKLIB_DOSLIKE.
This commit is contained in:
parent
6b44b4a775
commit
8083e03291
1 changed files with 2 additions and 0 deletions
|
@ -658,6 +658,7 @@ io_open_src(const char *src_name)
|
||||||
static void
|
static void
|
||||||
io_close_src(file_pair *pair, bool success)
|
io_close_src(file_pair *pair, bool success)
|
||||||
{
|
{
|
||||||
|
#ifndef TUKLIB_DOSLIKE
|
||||||
if (restore_stdin_flags) {
|
if (restore_stdin_flags) {
|
||||||
assert(pair->src_fd == STDIN_FILENO);
|
assert(pair->src_fd == STDIN_FILENO);
|
||||||
|
|
||||||
|
@ -668,6 +669,7 @@ io_close_src(file_pair *pair, bool success)
|
||||||
"to standard input: %s"),
|
"to standard input: %s"),
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pair->src_fd != STDIN_FILENO && pair->src_fd != -1) {
|
if (pair->src_fd != STDIN_FILENO && pair->src_fd != -1) {
|
||||||
#ifdef TUKLIB_DOSLIKE
|
#ifdef TUKLIB_DOSLIKE
|
||||||
|
|
Loading…
Reference in a new issue