aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2013-09-17 11:55:38 +0300
committerLasse Collin <lasse.collin@tukaani.org>2013-09-17 11:55:38 +0300
commit8083e03291b6d21c0f538163e187b4e8cd5594e4 (patch)
tree3fcf715739d33d71e58374b742e89b311362f01a /src/xz
parentAdd native threading support on Windows. (diff)
downloadxz-8083e03291b6d21c0f538163e187b4e8cd5594e4.tar.xz
xz: Add a missing test for TUKLIB_DOSLIKE.
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/file_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index fb8d64bd..f135cf7c 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -658,6 +658,7 @@ io_open_src(const char *src_name)
static void
io_close_src(file_pair *pair, bool success)
{
+#ifndef TUKLIB_DOSLIKE
if (restore_stdin_flags) {
assert(pair->src_fd == STDIN_FILENO);
@@ -668,6 +669,7 @@ io_close_src(file_pair *pair, bool success)
"to standard input: %s"),
strerror(errno));
}
+#endif
if (pair->src_fd != STDIN_FILENO && pair->src_fd != -1) {
#ifdef TUKLIB_DOSLIKE