aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorKelvin Lee <kiyolee@gmail.com>2023-09-05 15:00:07 +0300
committerLasse Collin <lasse.collin@tukaani.org>2023-09-22 20:00:37 +0300
commitc4edd367678e6a38c42b149856159bf417da7fe1 (patch)
tree726af213e0541c91afbe36125af9ff0455953f9b /src/xz
parentMSVC: Don't #include <unistd.h>. (diff)
downloadxz-c4edd367678e6a38c42b149856159bf417da7fe1.tar.xz
MSVC: xzdec: Use _fileno and _setmode.
Diffstat (limited to '')
-rw-r--r--src/xzdec/xzdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index 95a412f4..e9645c3f 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -28,6 +28,10 @@
#ifdef TUKLIB_DOSLIKE
# include <fcntl.h>
# include <io.h>
+# ifdef _MSC_VER
+# define fileno _fileno
+# define setmode _setmode
+# endif
#endif