--- src/lib/libc/stdio/fgetpos.c 2004/06/07 20:35:41 1.3 +++ src/lib/libc/stdio/fgetpos.c 2004/06/07 20:57:15 1.4 @@ -46,7 +46,7 @@ fgetpos(FILE *fp, fpos_t *pos) { int retval; FLOCKFILE(fp); - retval = (*pos = ftello(fp)) == (fpos_t)-1; + retval = (*pos = ftello(fp)) == (fpos_t)-1 ? -1 : 0; FUNLOCKFILE(fp); return(retval); }