summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_aux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index a6e3770e..24711aa2 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -32,6 +32,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <sys/time.h>
+#include <sys/types.h>
#ifdef __linux__
# include <sys/syscall.h>
#endif
@@ -40,7 +41,7 @@
/* signal interrupt helpers */
#ifdef __linux__
-# define gettid() syscall(__NR_gettid)
+# define gettid() (pid_t)(syscall(__NR_gettid))
#endif
#define sigev_notify_thread_id _sigev_un._tid