Browse Source

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.

Eric Andersen 20 years ago
parent
commit
fdda13fafb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/sys/sysinfo.h

+ 1 - 0
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 */