]> arthur.barton.de Git - netdata.git/blobdiff - src/common.h
Preparations in the source tree for FreeBSD plugin
[netdata.git] / src / common.h
index b9721824f75f083f6f4475dd716b13ce7ffbb290..b1b984479f973500a0234f9bc158ac4fb5916ddd 100644 (file)
@@ -20,7 +20,9 @@
 
 #else /* !defined(ENABLE_JEMALLOC) && !defined(ENABLE_TCMALLOC) */
 
+#ifndef __FreeBSD__
 #include <malloc.h>
+#endif /* __FreeBSD__ */
 
 #endif
 
 #include <signal.h>
 #include <syslog.h>
 #include <sys/mman.h>
+
+#ifndef __FreeBSD__
 #include <sys/prctl.h>
+#endif /* __FreeBSD__ */
+
 #include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <unistd.h>
 #include <uuid/uuid.h>
+
+/*
 #include <mntent.h>
+*/
 
 #ifdef STORAGE_WITH_MATH
 #include <math.h>
 #include "plugin_checks.h"
 #include "plugin_idlejitter.h"
 #include "plugin_nfacct.h"
+#ifndef __FreeBSD__
 #include "plugin_proc.h"
+#else
+#include "plugin_freebsd.h"
+#endif /* __FreeBSD__ */
 #include "plugin_tc.h"
 #include "plugins_d.h"
 
 #include "main.h"
 #include "unit_test.h"
 
+#include "ipc.h"
+#include "backends.h"
+
 #ifdef abs
 #undef abs
 #endif