summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-10-22 09:15:57 +0000
committerEric Andersen <andersen@codepoet.org>2003-10-22 09:15:57 +0000
commitfdda13fafbec9a3f86b0357572b9a028953d9411 (patch)
tree2ef010c99d65c6beb28e2168b795187e66e46c98
parent2d2ae37963f34dcc86f1b9e95702181f0147465e (diff)
It seems we need to also define SI_LOAD_SHIFT since that was
also exported by the Linux kernel.h header that we do not include.
-rw-r--r--include/sys/sysinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h
index 169731efe..9fd4fa829 100644
--- a/include/sys/sysinfo.h
+++ b/include/sys/sysinfo.h
@@ -24,6 +24,7 @@
#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 SI_LOAD_SHIFT 16
struct sysinfo {
long uptime; /* Seconds since boot */
unsigned long loads[3]; /* 1, 5, and 15 minute load averages */