--- ray/src/px/ra_skel.c 1991/12/19 14:52:19 2.2 +++ ray/src/px/ra_skel.c 1993/06/04 14:47:53 2.5 @@ -1,3 +1,5 @@ +/* Copyright (c) 1992 Regents of the University of California */ + #ifndef lint static char SCCSid[] = "$SunId$ LBL"; #endif @@ -17,9 +19,14 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#include +#ifdef MSDOS +#include +#endif #include "color.h" #include "resolu.h" +extern char *malloc(); double gamma = 2.2; /* gamma correction */ @@ -71,6 +78,10 @@ char *argv[]; progname, argv[i+1]); exit(1); } +#ifdef MSDOS + setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); +#endif setcolrgam(gamma); /* set up gamma correction */ if (reverse) { /* get their image resolution */