aboutsummaryrefslogtreecommitdiffstats
path: root/src/diagnostic/diagnostic_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagnostic/diagnostic_private.h')
-rw-r--r--src/diagnostic/diagnostic_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/diagnostic/diagnostic_private.h b/src/diagnostic/diagnostic_private.h
index 284d2e7..45d414d 100644
--- a/src/diagnostic/diagnostic_private.h
+++ b/src/diagnostic/diagnostic_private.h
@@ -23,7 +23,21 @@
#include <stdio.h>
#include <stdarg.h>
+#include <errno.h>
+#include <unistd.h>
+
+#ifdef __GLIBC__
+# if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 29)
+# include <sys/types.h>
+# else
+# define _GNU_SOURCE
+# include <sys/syscall.h>
+# define gettid() (syscall(SYS_gettid))
+# endif
+#endif
+
static void __rin_msg(FILE *stream, const char *prefix, const char *format, va_list args);
+static void __rin_pidconvadjust(void);
#endif /* LIBRIN_DIAGNOSTIC_PRIVATE_INCLUDED */