[BusyBox] [patch] sprinkle some unistd.h includes

Erik Andersen andersen at codepoet.org
Mon Dec 15 22:25:18 UTC 2003


On Mon Dec 15, 2003 at 03:04:45PM -0700, Russ Dill wrote:
> On Mon, 2003-12-15 at 01:05, Erik Andersen wrote:
> > On Sun Dec 14, 2003 at 11:58:18PM -0700, Russ Dill wrote:
> > > This patch adds a couple unistd.h includes for some systems that need
> > > it. Lemme know what you think, as long as there are no objections, I'll
> > > apply it
> > 
> > Can you show me what you are seeing?  The sys/syscall.h
> > is supposed to address this....
> > 
> >  -Erik
> > 
> 
> arm-elf-gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os
> -fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG  
> -D__uClinux__ -elf2flt  -c -o modutils/rmmod.o modutils/rmmod.c
> modutils/rmmod.c: In function `rmmod_main':
> modutils/rmmod.c:79: `__NR_delete_module' undeclared (first use in this
> function)
> modutils/rmmod.c:79: (Each undeclared identifier is reported only once
> modutils/rmmod.c:79: for each function it appears in.)
> make: *** [modutils/rmmod.o] Error 1
> 
> [need to add the include to rmmod.h too]

Ok.  And what C library are you using?  In both uClibc and
in glibc, sys/syscall.h includes asm/unistd.h

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list