]> arthur.barton.de Git - netdata.git/blobdiff - src/common.c
build: migrate to autotools
[netdata.git] / src / common.c
index 825c102235ac16829e4f8cc3e1a354dba60d8da8..2df676f90216253f4e7584e242ba697d6e354d1f 100755 (executable)
@@ -1,6 +1,7 @@
-// enable O_NOATIME
-#define _GNU_SOURCE
-
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <sys/syscall.h>
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
@@ -187,3 +188,9 @@ void get_HZ(void)
 
        hz = (unsigned int) ticks;
 }
+
+pid_t gettid(void)
+{
+       return syscall(SYS_gettid);
+}
+