From 825e859a9054bd91202e5723c41a17e72f63040a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 10 Oct 2010 16:47:01 +0300 Subject: [PATCH] lzmainfo: Use fileno(stdin) instead of STDIN_FILENO. --- src/lzmainfo/lzmainfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lzmainfo/lzmainfo.c b/src/lzmainfo/lzmainfo.c index 8bd43af6..5f1d6798 100644 --- a/src/lzmainfo/lzmainfo.c +++ b/src/lzmainfo/lzmainfo.c @@ -177,7 +177,7 @@ main(int argc, char **argv) parse_args(argc, argv); #ifdef TUKLIB_DOSLIKE - setmode(STDIN_FILENO, O_BINARY); + setmode(fileno(stdin), O_BINARY); #endif int ret = EXIT_SUCCESS;