--- ray/src/util/getinfo.c 2014/07/28 20:12:20 2.11 +++ ray/src/util/getinfo.c 2016/03/06 01:13:18 2.13 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: getinfo.c,v 2.11 2014/07/28 20:12:20 greg Exp $"; +static const char RCSid[] = "$Id: getinfo.c,v 2.13 2016/03/06 01:13:18 schorsch Exp $"; #endif /* * getinfo.c - program to read info. header from file. @@ -20,7 +20,7 @@ static const char RCSid[] = "$Id: getinfo.c,v 2.11 201 #define putchar putchar_unlocked #endif -#ifdef _WIN32 +#if defined(_WIN32) || defined(_WIN64) #include #define execvp _execvp #endif @@ -63,6 +63,7 @@ main( } else if (argc > 2 && !strcmp(argv[1], "-c")) { SET_FILE_BINARY(stdin); SET_FILE_BINARY(stdout); + setvbuf(stdin, NULL, _IONBF, 2); getheader(stdin, (gethfunc *)fputs, stdout); printargs(argc-2, argv+2, stdout); fputc('\n', stdout);