summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-22 21:10:47 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-22 21:10:47 +0000
commit02f74937667727e32c591afe42e90e2b515ab61e (patch)
tree9ac86a8f6637b6970cc6d017e96c044a7f2e9f1a /libc/sysdeps
parent113471cb0bd16e03864a58983468ce8091fbecc3 (diff)
Don't use linux/sysctl.h and instead locally define struct __sysctl_args.
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 6fa2c9a65..c44959632 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1467,7 +1467,15 @@ _syscall1(int, fdatasync, int, fd);
//#define __NR__sysctl 149
#ifdef __NR__sysctl
#ifdef L__sysctl
-#include <linux/sysctl.h>
+struct __sysctl_args {
+ int *name;
+ int nlen;
+ void *oldval;
+ size_t *oldlenp;
+ void *newval;
+ size_t newlen;
+ unsigned long __unused[4];
+};
_syscall1(int, _sysctl, struct __sysctl_args *, args);
int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp,
void *newval, size_t newlen)