1 diff -urN zabbix-1.6/src/libs/zbxsysinfo/linux/cpu.c zabbix-1.6.new/src/libs/zbxsysinfo/linux/cpu.c
2 --- zabbix-1.6/src/libs/zbxsysinfo/linux/cpu.c 2008-09-18 22:15:26.000000000 +0200
3 +++ zabbix-1.6.new/src/libs/zbxsysinfo/linux/cpu.c 2008-09-30 19:32:54.000000000 +0200
9 +/* uclibc and dietlibc do not have this junk -ReneR */
10 +#if defined (__UCLIBC__) || defined (__dietlibc__)
11 +static int getloadavg (double loadavg[], int nelem)
15 + fd = open ("/proc/loadavg", O_RDONLY);
24 + nread = read (fd, buf, sizeof buf - 1);
28 + buf[nread - 1] = '\0';
33 + for (i = 0; i < nelem; ++i)
36 + loadavg[i] = strtod (p, &endp);
47 int SYSTEM_CPU_NUM(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)