X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2Fpthread_user_data.c;h=87055127dcd178921e68599a0c970b6f02aa2967;hb=8cd9d663c342e2c2d593fcab5b102feb38905f8c;hp=74ae1145c46511d7ed34021ee678fae8b1dede94;hpb=46a7758b58eeff9b507e6e173b03b7fd909e22c3;p=mirrors%2FPrograms.git diff --git a/c/pthread_extra/pthread_user_data.c b/c/pthread_extra/pthread_user_data.c index 74ae114..8705512 100644 --- a/c/pthread_extra/pthread_user_data.c +++ b/c/pthread_extra/pthread_user_data.c @@ -1,5 +1,9 @@ #define __PTHREAD_EXTRA_INTERNAL +#ifndef _GNU_SOURCE +#define _GNU_SOURCE //PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP +#endif //_GNU_SOURCE + //#include #include #include @@ -35,6 +39,7 @@ pthread_user_data_internal_t* pthread_user_data_internal(pthread_t thread) { pthread_t i; for(i = 0; i