From 41190343562493449a1801fa5a7eecf181b8656e Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Tue, 1 Oct 2019 15:18:09 +0300 Subject: diagnostics: add more prefixes. This also starts preparations for overhaul of this subsystem. Signed-off-by: Gediminas Jakutis --- src/diagnostic/diagnostic_private.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/diagnostic/diagnostic_private.h') 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 #include +#include +#include + +#ifdef __GLIBC__ +# if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 29) +# include +# else +# define _GNU_SOURCE +# include +# 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 */ -- cgit v1.2.3