diff options
author | maximilian attems <max@stro.at> | 2011-08-08 20:15:34 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-08-08 20:23:03 +0200 |
commit | 201dabf78546ca712d3541670a5d898dc199854e (patch) | |
tree | 9c1f8f1ded4d5644b51621a7193fd2e0f5b7fcd9 | |
parent | 96aeff7a7fedc7e1ff16a9d6e6cf80a6480f7cd0 (diff) | |
download | klibc-201dabf78546ca712d3541670a5d898dc199854e.tar.gz |
[klibc] include: [sys/ioctl.h] needs linux/sockios.h
The defines of SIOCGIFCONF and SIOCSIFFLAGS are well
hidden in linux-2.6 under #ifdef __KERNEL__ sections
for example in linux/socket.h
Fixes these in kexec-tools against klibc:
| kexec/ifdown.c:46:16: error: 'SIOCGIFCONF' undeclared (first use in
this function)
| kexec/ifdown.c:46:16: note: each undeclared identifier is reported
only once for each function it appears in
| kexec/ifdown.c:65:18: error: 'SIOCSIFFLAGS' undeclared (first use in
this function)
Reported-by: Andrea Adami <andrea.adami@gmail.com>
Suggested-by: KUMAAN <9maaan@gmail.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/include/sys/ioctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/include/sys/ioctl.h b/usr/include/sys/ioctl.h index 559f1119122e0..81ae7561f3da8 100644 --- a/usr/include/sys/ioctl.h +++ b/usr/include/sys/ioctl.h @@ -9,6 +9,9 @@ #include <linux/ioctl.h> #include <asm/ioctls.h> +/* the SIOCxxx I/O are hidden */ +#include <linux/sockios.h> + __extern int ioctl(int, int, void *); #endif /* _SYS_IOCTL_H */ |