[patch] broken nested declaration of lseek() in telldir.c
Ralf Corsepius
ralf.corsepius@rtems.org
Sat Feb 6 06:20:00 GMT 2010
Hi,
libc/posix/telldir.c contains a nested declaration of lseek().
This
a) doesn't match with POSIX:
off_t lseek(int fd, off_t offset, int whence);
b) causes building newlib to abort in cases when "off_t != long"
Below is my proposal to fix both issues:
Remove the nested declaration, but rely on rely on lseek() from
"unistd.h", instead.
Ralf
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-telldir.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20100206/62561c3c/attachment.ksh>
More information about the Newlib
mailing list