X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=c%2Fpthread_extra%2Fpthread_user_data.c;h=87055127dcd178921e68599a0c970b6f02aa2967;hb=30d358cd5a66ea85b06729df8fa13a068ac21d51;hp=74ae1145c46511d7ed34021ee678fae8b1dede94;hpb=de59b17efb67056de9a5182dbbeed27aed68117c;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