]> arthur.barton.de Git - netdata.git/blobdiff - src/common.h
Merge pull request #1740 from simonnagl/feature/version
[netdata.git] / src / common.h
index 778bacd3c4cd213a92db38d0ee8dd010b2f4ae07..e781d47bcc830461b0745fe4b0dc66d9167b88e0 100644 (file)
 
 #if defined(__FreeBSD__)
 #include "plugin_freebsd.h"
+#define NETDATA_OS_TYPE "freebsd"
 #elif defined(__APPLE__)
 #include "plugin_macos.h"
+#define NETDATA_OS_TYPE "macos"
 #else
 #include "plugin_proc.h"
 #include "plugin_proc_diskspace.h"
+#define NETDATA_OS_TYPE "linux"
 #endif /* __FreeBSD__, __APPLE__*/
 
 #include "plugin_tc.h"
@@ -271,6 +274,10 @@ extern pid_t get_system_pid_max(void);
 extern unsigned int hz;
 extern void get_system_HZ(void);
 
+extern volatile sig_atomic_t netdata_exit;
+extern const char *os_type;
+
+extern const char *program_version;
 
 /* fix for alpine linux */
 #ifndef RUSAGE_THREAD