[git commit] sysinfo.h: Prevent redeclarations

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Apr 4 12:05:44 UTC 2014


commit: http://git.uclibc.org/uClibc/commit/?id=e8e3a0a833edf6b91967367ecc48189c282547dd
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/sys/sysinfo.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index c3691a2..00e3633 100644
--- a/include/sys/sysinfo.h
+++ b/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 */


More information about the uClibc-cvs mailing list