Browse Source

Avoid errors in case some loon has explicitly included
linux/kernel.h (even though doing so is very dumb).
-Erik

Eric Andersen 23 years ago
parent
commit
fa7102ea2e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/sys/sysinfo.h

+ 2 - 0
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