diff options
author | Kelvin Lee <kiyolee@gmail.com> | 2023-09-05 15:00:07 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-22 20:00:37 +0300 |
commit | c4edd367678e6a38c42b149856159bf417da7fe1 (patch) | |
tree | 726af213e0541c91afbe36125af9ff0455953f9b /src/xz | |
parent | MSVC: Don't #include <unistd.h>. (diff) | |
download | xz-c4edd367678e6a38c42b149856159bf417da7fe1.tar.xz |
MSVC: xzdec: Use _fileno and _setmode.
Diffstat (limited to '')
-rw-r--r-- | src/xzdec/xzdec.c | 4 |
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 |