Revision dc7a09cf os-posix.c

b/os-posix.c
41 41

  
42 42
#ifdef CONFIG_LINUX
43 43
#include <sys/prctl.h>
44
#include <sys/syscall.h>
44 45
#endif
45 46

  
46 47
#ifdef CONFIG_EVENTFD
......
382 383

  
383 384
    return 0;
384 385
}
386

  
387
int qemu_get_thread_id(void)
388
{
389
#if defined (__linux__)
390
    return syscall(SYS_gettid);
391
#else
392
    return getpid();
393
#endif
394
}

Also available in: Unified diff