blob: f04eefbd51d3572ceca2f644dea90e536b34c49e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#define _GNU_SOURCE
#include <unistd.h>
#include "pthread_impl.h"
pid_t gettid(void)
{
return __pthread_self()->tid;
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|