--- ray/src/hd/genrhenv.c 2003/05/29 16:26:21 3.4 +++ ray/src/hd/genrhenv.c 2003/10/20 16:01:55 3.6 @@ -1,11 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: genrhenv.c,v 3.4 2003/05/29 16:26:21 greg Exp $"; +static const char RCSid[] = "$Id: genrhenv.c,v 3.6 2003/10/20 16:01:55 greg Exp $"; #endif /* * Create a closed environment from a holodeck section */ #include "holo.h" +#include "platform.h" #define ourhp (hdlist[0]) @@ -57,7 +58,7 @@ int sect; { FILE *fp; int fd; - int4 nextloc; + int32 nextloc; int n; /* open holodeck file */ if ((fp = fopen(fname, "r")) == NULL) { @@ -73,7 +74,7 @@ int sect; nextloc = ftell(fp); /* get stdio position */ fclose(fp); /* done with stdio */ for (n = 0; nextloc > 0L; n++) { /* get the indicated section */ - lseek(fd, (off_t)nextloc, 0); + lseek(fd, (off_t)nextloc, SEEK_SET); read(fd, (char *)&nextloc, sizeof(nextloc)); if (n == sect) { hdinit(fd, NULL);