X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fload.c;h=575b4ca44d8698258a636602df47f2ec0da76c67;hb=b324ebf63ff9117d5f8facb97342925606d373cc;hp=b7372a1091f9e35e7ffc597570129dc3cb636c2a;hpb=37905c5a2370c8e6edae5011978773eeaa589d09;p=collectd.git diff --git a/src/load.c b/src/load.c index b7372a10..575b4ca4 100644 --- a/src/load.c +++ b/src/load.c @@ -19,6 +19,8 @@ * Florian octo Forster **/ +#define _BSD_SOURCE + #include "collectd.h" #include "common.h" #include "plugin.h" @@ -79,7 +81,7 @@ static int load_read (void) char *fields[8]; int numfields; - + if ((loadavg = fopen ("/proc/loadavg", "r")) == NULL) { char errbuf[1024];