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 8bd43af..5f1d679 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;