Przeglądaj źródła

sysinfo.h: Prevent redeclarations

Guard against duplicate inclusion.
We should go back to just including the linux/sysinfo.h ..

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 10 lat temu
rodzic
commit
e8e3a0a833
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      include/sys/sysinfo.h

+ 2 - 0
include/sys/sysinfo.h

@@ -23,6 +23,8 @@
 #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. */
+#define _LINUX_SYSINFO_H
+
 #define SI_LOAD_SHIFT	16
 struct sysinfo {
 	long uptime;			/* Seconds since boot */