--- ray/src/rt/duphead.c 2003/02/25 02:47:22 2.4 +++ ray/src/rt/duphead.c 2003/06/08 12:03:10 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: duphead.c,v 2.4 2003/02/25 02:47:22 greg Exp $"; +static const char RCSid[] = "$Id: duphead.c,v 2.6 2003/06/08 12:03:10 schorsch Exp $"; #endif /* * Duplicate header on stdout. @@ -10,6 +10,7 @@ static const char RCSid[] = "$Id: duphead.c,v 2.4 2003 #include "copyright.h" #include "standard.h" +#include "platform.h" #include "paths.h" @@ -52,9 +53,7 @@ dupheader() /* repeat header on standard output */ if (headfp == NULL) { if ((headfp = fopen(headfname, "r")) == NULL) error(SYSTEM, "error reopening header file"); -#ifdef MSDOS - setmode(fileno(headfp), O_BINARY); -#endif + SET_FILE_BINARY(headfp); } else if (fseek(headfp, 0L, 0) < 0) error(SYSTEM, "seek error on header file"); while ((c = getc(headfp)) != EOF)