summaryrefslogtreecommitdiff
path: root/include/sys/sysinfo.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-27 08:31:42 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-27 08:31:42 +0000
commitfa7102ea2e7ea4ca964ec554e8c424f7bc6179bb (patch)
treee9f3133401a18c9ccd9c1b2f288e93762cbbc9e1 /include/sys/sysinfo.h
parent470b19d84bd247d7bd0784f27a958e9119b8a0fe (diff)
Avoid errors in case some loon has explicitly included
linux/kernel.h (even though doing so is very dumb). -Erik
Diffstat (limited to 'include/sys/sysinfo.h')
-rw-r--r--include/sys/sysinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index b0405e280..169731efe 100644
--- a/include/sys/sysinfo.h
+++ b/include/sys/sysinfo.h
@@ -21,6 +21,7 @@
#include <features.h>
+#ifndef _LINUX_KERNEL_H
/* Include our own copy of struct sysinfo to avoid binary compatability
* problems with Linux 2.4, which changed things. Grumble, grumble. */
struct sysinfo {
@@ -39,6 +40,7 @@ struct sysinfo {
unsigned int mem_unit; /* Memory unit size in bytes */
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
};
+#endif
__BEGIN_DECLS