--- ray/src/px/pextrem.c 1992/08/21 13:48:48 2.1 +++ ray/src/px/pextrem.c 1992/09/21 12:14:03 2.2 @@ -9,6 +9,9 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#ifdef MSDOS +#include +#endif #include "color.h" @@ -18,7 +21,9 @@ int wrongformat = 0; COLOR expos = WHTCOLOR; +extern char *malloc(); + headline(s) /* check header line */ char *s; { @@ -53,7 +58,11 @@ char *argv[]; COLR *scan; COLR cmin, cmax; int xmin, ymin, xmax, ymax; - +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdin), O_BINARY); +#endif for (i = 1; i < argc; i++) /* get options */ if (!strcmp(argv[i], "-o")) orig++;