]> granicus.if.org Git - xz/commitdiff
lzmainfo: Use fileno(stdin) instead of STDIN_FILENO.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 10 Oct 2010 13:47:01 +0000 (16:47 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 10 Oct 2010 13:47:01 +0000 (16:47 +0300)
src/lzmainfo/lzmainfo.c

index 8bd43af65eeed8c79c41f980cf0a23daa8ecc391..5f1d6798caac303ad821adca4fbbc92bcdb93026 100644 (file)
@@ -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;