--- ray/src/rt/rpict.c 2003/09/24 14:55:54 2.63 +++ ray/src/rt/rpict.c 2003/10/27 10:30:18 2.65 @@ -28,6 +28,7 @@ static const char RCSid[] = "$Id"; #include "view.h" #include "random.h" #include "paths.h" +#include "rtmisc.h" /* myhostname() */ #define RFTEMPLATE "rfXXXXXX" @@ -149,7 +150,6 @@ int code; void report() /* report progress */ { - extern char *myhostname(); double u, s; #ifdef BSD struct rusage rubuf; @@ -413,7 +413,7 @@ char *zfile, *oldfile; if (i >= vres) goto alldone; if (zfd != -1 && i > 0 && - lseek(zfd, (off_t)i*hres*sizeof(float), 0) < 0) + lseek(zfd, (off_t)i*hres*sizeof(float), SEEK_SET) < 0) error(SYSTEM, "z-file seek error in render"); pctdone = 100.0*i/vres; if (ralrm > 0) /* report init stats */