From 998288337d87b9fac8ae3a2f06ee97bfa9bfdfa3 Mon Sep 17 00:00:00 2001 From: Lyude Paul Date: Tue, 23 Apr 2019 18:50:56 -0400 Subject: Use gettid() wrapper everywhere Currently we have multiple different parts of IGT that define their own wrapper around the gettid() syscall (or just call it directly with no wrapper). Additionally, add the appropriate #includes for igt_aux.h to make sure syscall() is available. Reviewed-by: Petri Latvala Signed-off-by: Lyude Paul --- lib/igt_aux.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 67e8fbf4..a6e3770e 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -32,11 +32,16 @@ #include #include #include +#ifdef __linux__ +# include +#endif #include /* signal interrupt helpers */ -#define gettid() syscall(__NR_gettid) +#ifdef __linux__ +# define gettid() syscall(__NR_gettid) +#endif #define sigev_notify_thread_id _sigev_un._tid /* auxialiary igt helpers from igt_aux.c */ -- cgit v1.2.3