[gmail] Busybox-1.4.0: implicit declaration of function `readahead`

Denis Vlasenko vda.linux at googlemail.com
Fri Jan 26 23:25:23 UTC 2007


On Friday 26 January 2007 10:04, Bernhard Fischer wrote:
> On Fri, Jan 26, 2007 at 09:04:23AM +0100, Marc Leeman wrote:
> >> 	Any advice is appreciated.
> >
> >man 2 readahead
> >
> >ssize_t readahead(int fd, off64_t *offset, size_t count);
> >
> >defined in 
> >#include "busybox.h"
> >-> #include "libbb.h"
> >-> -> #include <fcntl.h>
> >
> >I have it in a 4.x based toolchain, but not in a 3.3.4 based cross
> >toolchain.
> 
> It's only available with LFS. Fixed in menuconfig (r17539)

For me (gcc 4.1.1, glibc 2.4) it works even without LFS,
and I want to be able to have that still available.

It should be done with #if/#error... instead, I think.
--
vda



More information about the busybox mailing list