From 02f74937667727e32c591afe42e90e2b515ab61e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 22 Aug 2003 21:10:47 +0000 Subject: Don't use linux/sysctl.h and instead locally define struct __sysctl_args. --- libc/sysdeps/linux/common/syscalls.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/syscalls.c') 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 +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) -- cgit v1.2.3