Compile error in libc/sysdeps/linux/common/close.c

Mike Frysinger vapier at gentoo.org
Mon Jan 16 09:44:32 UTC 2006


On Sunday 15 January 2006 18:36, Jan-Benedict Glaw wrote:
> On Sun, 2006-01-15 23:41:44 +0100, Peter S. Mazinger <ps.m at gmx.net> wrote:
> > On Sun, 15 Jan 2006, Peter S. Mazinger wrote:
> > it builds now w/ gcc-4.0.2, could be ok for you as well
>
> That's indeed better, but doesn't compile completely:
>
> libc/misc/sysvipc/shm.c:29: error: 'getpagesize' undeclared here (not in a
> function) 
> libc/misc/sysvipc/shm.c:29: warning: type defaults to 'int' in declaration
> of 'getpagesize' 

you'll get that error if the prototype for getpagesize doesnt exist yet

unistd.h should be declaring that prototype for you ...
-mike



More information about the uClibc mailing list