[comp.os.minix] bug with Turbo C and build.c

jrw@uncecs.edu (James R. White) (03/22/90)

In tools/build.c line 199:
	if (lseek(fd, (long) -sizeof click_buf, 1) < 0)
causes problems using Turbo C. I replaced it with:
	if (lseek(fd, -(long) sizeof click_buf, 1) < 0)
The reason for the problem is that in TC sizeof gives an unsigned.
Thus, sizeof click_buf is (unsigned)4, and -(unsigned)4 is 65532.