diff options
author | Mark Wielaard <mark@klomp.org> | 2022-04-20 00:31:01 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-04-20 00:31:10 +0200 |
commit | 28da6196a27de951d6143d4f2765d1f2976f0d39 (patch) | |
tree | 7cd8fe54146b6d27dd254d05460d77ec7ad97b36 /bzip2.c | |
parent | 8ca1faa31f396d94ab927b257f3a05236c84e330 (diff) | |
download | bzip2-28da6196a27de951d6143d4f2765d1f2976f0d39.tar.gz bzip2-28da6196a27de951d6143d4f2765d1f2976f0d39.tar.bz2 bzip2-28da6196a27de951d6143d4f2765d1f2976f0d39.zip |
Define STDERR_FILENO for BZ_LCCWIN32
STDERR_FILENO is *nix specific and is not defined under MSVC.
So define it using _fileno(stderr).
Suggested-by: Dmitry Tsarevich <dimhotepus@gmail.com>
Diffstat (limited to 'bzip2.c')
-rw-r--r-- | bzip2.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -150,6 +150,8 @@ | |||
150 | ERROR_IF_MINUS_ONE ( retVal ); \ | 150 | ERROR_IF_MINUS_ONE ( retVal ); \ |
151 | } while ( 0 ) | 151 | } while ( 0 ) |
152 | 152 | ||
153 | # define STDERR_FILENO _fileno(stderr) | ||
154 | |||
153 | #endif /* BZ_LCCWIN32 */ | 155 | #endif /* BZ_LCCWIN32 */ |
154 | 156 | ||
155 | 157 | ||