Преглед на файлове

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

Eric Andersen преди 23 години
родител
ревизия
fa7102ea2e
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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