summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/zbxsysinfo/freebsd/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/zbxsysinfo/freebsd/proc.c b/src/libs/zbxsysinfo/freebsd/proc.c
index d67f5849..05d2d726 100644
--- a/src/libs/zbxsysinfo/freebsd/proc.c
+++ b/src/libs/zbxsysinfo/freebsd/proc.c
@@ -58,9 +58,6 @@
#include <sys/statvfs.h>
#endif
-#ifdef HAVE_SYS_PROC_H
-# include <sys/proc.h>
-#endif
/* Solaris */
#ifdef HAVE_SYS_PROCFS_H
/* This is needed to access the correct procfs.h definitions */
@@ -123,6 +120,9 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
+#ifdef HAVE_SYS_PROC_H
+ #include <sys/proc.h>
+#endif
#ifdef HAVE_MACH_HOST_INFO_H
#include <mach/host_info.h>