From fa7102ea2e7ea4ca964ec554e8c424f7bc6179bb Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 27 Jul 2002 08:31:42 +0000 Subject: Avoid errors in case some loon has explicitly included linux/kernel.h (even though doing so is very dumb). -Erik --- include/sys/sysinfo.h | 2 ++ 1 file changed, 2 insertions(+) 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 +#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 -- cgit v1.2.3