diff --git a/include/pthread.h b/include/pthread.h index 05616a54c64..639badd12f1 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -525,7 +525,8 @@ void pthread_yield(void); /* A thread may obtain a copy of its own thread handle. */ -#define pthread_self() ((pthread_t)gettid()) +#define pthread_self() ((pthread_t)gettid()) +#define pthread_gettid_np(thread) ((pid_t)(thread)) /* Compare two thread IDs. */