]> arthur.barton.de Git - netdata.git/blobdiff - src/common.h
Merge pull request #1740 from simonnagl/feature/version
[netdata.git] / src / common.h
index a82ed3758290ccd9e244a3b98020f24884fd5aa3..e781d47bcc830461b0745fe4b0dc66d9167b88e0 100644 (file)
@@ -67,9 +67,9 @@
 #include <syslog.h>
 #include <sys/mman.h>
 
-#if !(defined(__FreeBSD__) || defined(__APPLE__))
+#ifdef HAVE_SYS_PRCTL_H
 #include <sys/prctl.h>
-#endif /* __FreeBSD__ || __APPLE__*/
+#endif
 
 #include <sys/resource.h>
 #include <sys/socket.h>
@@ -277,6 +277,8 @@ 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
 #ifdef RUSAGE_CHILDREN