tests/drm_get_client_auth: In Android, use gettid() instead of syscall(SYS_gettid)

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Oscar Mateo 2013-11-12 11:50:40 +00:00 committed by Daniel Vetter
parent 1cd6913608
commit 7076ea1bd6

View File

@ -47,9 +47,13 @@
static bool
is_local_tid(pid_t tid)
{
/* On Linux systems, drmGetClient() would return the thread ID
instead of the actual process ID */
return syscall(SYS_gettid) == tid;
#ifndef ANDROID
/* On Linux systems, drmGetClient() would return the thread ID
instead of the actual process ID */
return syscall(SYS_gettid) == tid;
#else
return gettid() == tid;
#endif
}