From: Tomas Mudrunka Date: Thu, 8 Jul 2021 12:53:48 +0000 (+0200) Subject: Fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=8cd9d663c342e2c2d593fcab5b102feb38905f8c;p=mirrors%2FPrograms.git Fix --- 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