aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorKelvin Lee <kiyolee@gmail.com>2023-09-05 15:10:31 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-09-22 20:00:38 +0300
commitd14bba8fc2be02a9fed8c9bcaaf61103451755f8 (patch)
tree37aca075d453168cb1e7f6791cb43ade5a4d885c /src/xz
parentMSVC: xzdec: Use _fileno and _setmode. (diff)
downloadxz-d14bba8fc2be02a9fed8c9bcaaf61103451755f8.tar.xz
MSVC: xz: Use _fileno() instead of fileno().
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xz/private.h b/src/xz/private.h
index 57606cd6..8542427f 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -36,6 +36,10 @@
# include <windows.h>
#endif
+#ifdef _MSC_VER
+# define fileno _fileno
+#endif
+
#ifndef STDIN_FILENO
# define STDIN_FILENO (fileno(stdin))
#endif