--- ray/src/px/pinterp.c 2003/07/27 22:12:03 2.37 +++ ray/src/px/pinterp.c 2003/10/20 16:01:55 2.38 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pinterp.c,v 2.37 2003/07/27 22:12:03 schorsch Exp $"; +static const char RCSid[] = "$Id: pinterp.c,v 2.38 2003/10/20 16:01:55 greg Exp $"; #endif /* * Interpolate and extrapolate pictures with different view parameters. @@ -13,6 +13,7 @@ static const char RCSid[] = "$Id: pinterp.c,v 2.37 200 #include #include "standard.h" +#include "platform.h" #include "rtprocess.h" /* Windows: must come before color.h */ #include "view.h" #include "color.h" @@ -491,7 +492,8 @@ char *pfile, *zspec; exit(1); } if (zfd != -1 && lseek(zfd, - (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), 0) < 0) + (off_t)ylim.min*scanlen(&tresolu)*sizeof(float), + SEEK_SET) < 0) syserror(zspec); /* load image */ for (y = ylim.min; y <= ylim.max; y++) { @@ -759,7 +761,7 @@ int zfd; for (y = step - 1; y < numscans(&tresolu); y += step) { if (zfd != -1) { if (lseek(zfd, (off_t)y*scanlen(&tresolu)*sizeof(float), - 0) < 0) + SEEK_SET) < 0) syserror("lseek"); if (read(zfd, (char *)zline, scanlen(&tresolu)*sizeof(float))