aboutsummaryrefslogtreecommitdiff
path: root/bzip2.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-04-20 00:31:01 +0200
committerMark Wielaard <mark@klomp.org>2022-04-20 00:31:10 +0200
commit28da6196a27de951d6143d4f2765d1f2976f0d39 (patch)
tree7cd8fe54146b6d27dd254d05460d77ec7ad97b36 /bzip2.c
parent8ca1faa31f396d94ab927b257f3a05236c84e330 (diff)
downloadbzip2-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bzip2.c b/bzip2.c
index d1f2fa8..1538faf 100644
--- a/bzip2.c
+++ b/bzip2.c
@@ -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