diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-05-28 17:35:16 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-05-28 17:35:16 +0000 |
commit | 6535b76645bf0001cdbaa8dc26938cdd56940bb9 (patch) | |
tree | f984b4f40a04f424dc1a0ab02909f79039b42702 /src/zabbix_agent/diskdevices.c | |
parent | 8ec5afef2efbca45db86258ccb2ac0eb195a6da7 (diff) | |
download | zabbix-6535b76645bf0001cdbaa8dc26938cdd56940bb9.tar.gz zabbix-6535b76645bf0001cdbaa8dc26938cdd56940bb9.tar.xz zabbix-6535b76645bf0001cdbaa8dc26938cdd56940bb9.zip |
Fixed compilation of the agent under FreeBSD (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@791 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent/diskdevices.c')
-rw-r--r-- | src/zabbix_agent/diskdevices.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zabbix_agent/diskdevices.c b/src/zabbix_agent/diskdevices.c index 5ff26a18..4eff4345 100644 --- a/src/zabbix_agent/diskdevices.c +++ b/src/zabbix_agent/diskdevices.c @@ -47,9 +47,10 @@ #include <sys/time.h> #include <sys/resource.h> - /* for minor(), major() under Solaris */ -#include <sys/sysmacros.h> +#ifdef HAVE_SYS_SYSMACROS_H + #include <sys/sysmacros.h> +#endif /* Required for getpwuid */ #include <pwd.h> |