From 99e6defbe79d3a41f967b55d33ce1a856914e797 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 23 Dec 2014 19:07:10 -0800 Subject: Use pthread calls instead of raw syscalls on non-Linux systems Raw system calls aren't portable to other kernels. Signed-off-by: Alan Coopersmith Signed-off-by: Daniel Vetter --- tests/drm_import_export.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/drm_import_export.c') diff --git a/tests/drm_import_export.c b/tests/drm_import_export.c index 83e753bf..57b13ddb 100644 --- a/tests/drm_import_export.c +++ b/tests/drm_import_export.c @@ -121,7 +121,11 @@ static void start_test(void) static void * test_thread(void * par) { +#ifdef __linux__ igt_debug("start %ld\n", syscall(SYS_gettid)); +#else + igt_debug("start %ld\n", (long) pthread_self()); +#endif start_test(); return NULL; -- cgit v1.2.3