projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8bae43
)
Add ugly hacks to prevent warnings from the kernel headers.
author
drepper
<drepper>
Wed, 6 Nov 2002 05:54:16 +0000
(
05:54
+0000)
committer
drepper
<drepper>
Wed, 6 Nov 2002 05:54:16 +0000
(
05:54
+0000)
sysdeps/unix/sysv/linux/sys/sysctl.h
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/sys/sysctl.h
b/sysdeps/unix/sysv/linux/sys/sysctl.h
index
bdc8ad2
..
d5cdb1c
100644
(file)
--- a/
sysdeps/unix/sysv/linux/sys/sysctl.h
+++ b/
sysdeps/unix/sysv/linux/sys/sysctl.h
@@
-1,4
+1,4
@@
-/* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1999
, 2002
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@
-17,16
+17,19
@@
02111-1307 USA. */
#ifndef _SYS_SYSCTL_H
02111-1307 USA. */
#ifndef _SYS_SYSCTL_H
-
#define _SYS_SYSCTL_H 1
#define _SYS_SYSCTL_H 1
-#include <features.h>
-
-__BEGIN_DECLS
+#include <features.h>
#define __need_size_t
#include <stddef.h>
#define __need_size_t
#include <stddef.h>
+/* Prevent more kernel headers than necessary to be included. */
+#define _LINUX_KERNEL_H 1
+#define _LINUX_TYPES_H 1
+#define _LINUX_LIST_H 1
#include <linux/sysctl.h>
#include <linux/sysctl.h>
+__BEGIN_DECLS
+
/* Read or write system parameters. */
extern int sysctl (int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;
/* Read or write system parameters. */
extern int sysctl (int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;