--- ray/src/rt/persist.c 2003/08/30 09:03:31 2.31 +++ ray/src/rt/persist.c 2003/10/20 16:01:55 2.32 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: persist.c,v 2.31 2003/08/30 09:03:31 schorsch Exp $"; +static const char RCSid[] = "$Id: persist.c,v 2.32 2003/10/20 16:01:55 greg Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -15,6 +15,7 @@ static const char RCSid[] = "$Id: persist.c,v 2.31 200 #include "rtprocess.h" /* getpid() */ #include "standard.h" +#include "platform.h" #include "random.h" #ifdef F_SETLKW @@ -136,7 +137,7 @@ pfhold() /* holding pattern for idle rendering proces n = strlen(buf); if (write(persistfd, buf, n) < n) error(SYSTEM, "error writing persist file"); - lseek(persistfd, (off_t)0L, 0); + lseek(persistfd, (off_t)0, SEEK_SET); /* wait TIMELIM for someone to signal us */ got_io = 0; signal(SIGIO, sig_io);