diff options
author | 2019-10-01 15:18:09 +0300 | |
---|---|---|
committer | 2019-10-01 15:18:09 +0300 | |
commit | 41190343562493449a1801fa5a7eecf181b8656e (patch) | |
tree | 4ea207f75fcf62ce39efae376a5aa08256cd0794 /src/diagnostic/diagnostic_private.h | |
parent | adff2b3f348268096a5416bc5be3d52a931ebf7d (diff) | |
download | librin-41190343562493449a1801fa5a7eecf181b8656e.tar.gz librin-41190343562493449a1801fa5a7eecf181b8656e.tar.bz2 librin-41190343562493449a1801fa5a7eecf181b8656e.zip |
diagnostics: add more prefixes.
This also starts preparations for overhaul of this subsystem.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/diagnostic/diagnostic_private.h')
-rw-r--r-- | src/diagnostic/diagnostic_private.h | 14 |
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 */ |