--- ray/src/rt/persist.c 2003/08/30 09:03:31 2.31 +++ ray/src/rt/persist.c 2003/10/22 02:06:35 2.33 @@ -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.33 2003/10/22 02:06:35 greg Exp $"; #endif /* * Routines for persistent rtrace and rpict processes. @@ -13,6 +13,7 @@ static const char RCSid[] = "$Id: persist.c,v 2.31 200 #include #include +#include "platform.h" #include "rtprocess.h" /* getpid() */ #include "standard.h" #include "random.h" @@ -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);