Browse Source

Don't use linux/sysctl.h and instead locally define struct __sysctl_args.

Eric Andersen 21 years ago
parent
commit
02f7493766
1 changed files with 9 additions and 1 deletions
  1. 9 1
      libc/sysdeps/linux/common/syscalls.c

+ 9 - 1
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)