summaryrefslogtreecommitdiffstats
path: root/src/zabbix_agent/sysinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_agent/sysinfo.c')
-rw-r--r--src/zabbix_agent/sysinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c
index b719e462..04b332af 100644
--- a/src/zabbix_agent/sysinfo.c
+++ b/src/zabbix_agent/sysinfo.c
@@ -235,6 +235,7 @@ float FILESIZE(const char * filename)
float PROCCNT(const char * procname)
{
+#ifdef HAVE_PROC_1_STATUS
DIR *dir;
struct dirent *entries;
struct stat buf;
@@ -281,6 +282,9 @@ float PROCCNT(const char * procname)
}
closedir(dir);
return (float)proccount;
+#else
+ return FAIL;
+#endif
}
float INODE(const char * mountPoint)