OSDN Git Service

sysinfo.h: Prevent redeclarations
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 3 Apr 2014 11:48:35 +0000 (13:48 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 4 Apr 2014 12:05:44 +0000 (14:05 +0200)
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>
include/sys/sysinfo.h

index c3691a2..00e3633 100644 (file)
@@ -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 */