fixed compilation when sysinfo fct is present
[psensor.git] / src / server / sysinfo.h
index a4dd809..7740e19 100644 (file)
 #ifndef _PSENSOR_SYSINFO_H_
 #define _PSENSOR_SYSINFO_H_
 
+#include <config.h>
 #include <sys/sysinfo.h>
 
 struct psysinfo {
        float cpu_rate;
 
+#ifdef HAVE_SYSINFO_FCT
        struct sysinfo sysinfo;
+#endif
 
        char **interfaces;
 };