OSDN Git Service

It seems we need to also define SI_LOAD_SHIFT since that was
authorEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 09:15:57 +0000 (09:15 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 22 Oct 2003 09:15:57 +0000 (09:15 -0000)
also exported by the Linux kernel.h header that we do not include.

include/sys/sysinfo.h

index 169731e..9fd4fa8 100644 (file)
@@ -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 */