reopen 164638
quit

On Mon, Oct 14, 2002 at 12:20:00AM -0400, Ben Collins wrote:
> On Mon, Oct 14, 2002 at 11:51:20AM +1000, [EMAIL PROTECTED] wrote:
> > Package: libc6-dev
> > Version: 2.2.5-14.3
> > Severity: normal
> > 
> > Please add this line to bits/ioctls.h:
> > 
> > #define SIOCSIFNAME        0x8923          /* set interface name */
> 
> ioctl's are not defined by libc headers.

In that case please remove bits/ioctls.h.

> Aside from that, this ioctl is indeed defined in linux/sockios.h, which
> is included by bits/ioctls.h, which is then included by sys/ioctl.h. So
> doing:

Well in 2.2.5-14.3, bits/ioctls.h does not include linux/sockios.h.

$ grep ^.include /usr/include/bits/ioctls.h
#include <asm/ioctls.h>
$

> #include <sys/ioctl.h>
> 
> Will get you what you want. E.g.
> 
> 
> hopper:~# cat test.c
> #include <sys/ioctl.h>
> 
> int main() {
>         printf("0x%04x\n", SIOCSIFNAME);
>         return 0;
> }
> hopper:~# gcc -o test test.c

Well your libc6-dev appears to differ from mine:

$ gcc -o test test.c
test.c: In function `main':
test.c:4: `SIOCSIFNAME' undeclared (first use in this function)
test.c:4: (Each undeclared identifier is reported only once
test.c:4: for each function it appears in.)
$
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply via email to