X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fserver%2Fsysinfo.c;h=9c371d5621500be52105eb82d2e53b5f997d5976;hp=7ac5d6bc3f30c0c2199aec3a588d2bf5d0e323d5;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=cc35e177d57bc4ee2cc57ae25f130dfc168aa61d diff --git a/src/server/sysinfo.c b/src/server/sysinfo.c index 7ac5d6b..9c371d5 100644 --- a/src/server/sysinfo.c +++ b/src/server/sysinfo.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -21,7 +21,13 @@ #include #include +#include "config.h" + +#ifdef HAVE_JSON_0 #include +#else +#include +#endif #include "sysinfo.h" @@ -61,7 +67,7 @@ void sysinfo_update(struct psysinfo *info) info->interfaces = glibtop_get_netlist(&buf); } -void sysinfo_cleanup() +void sysinfo_cleanup(void) { if (cpu) g_free(cpu);