diff options
Diffstat (limited to 'libc/pwd_grp/getgrgid.c')
-rw-r--r-- | libc/pwd_grp/getgrgid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/pwd_grp/getgrgid.c b/libc/pwd_grp/getgrgid.c index 5efca964a..3575a749b 100644 --- a/libc/pwd_grp/getgrgid.c +++ b/libc/pwd_grp/getgrgid.c @@ -27,9 +27,9 @@ #ifdef __UCLIBC_HAS_THREADS__ #include <pthread.h> -static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER; -# define LOCK pthread_mutex_lock(&mylock) -# define UNLOCK pthread_mutex_unlock(&mylock); +extern pthread_mutex_t __getgrent_lock; +# define LOCK pthread_mutex_lock(&__getgrent_lock) +# define UNLOCK pthread_mutex_unlock(&__getgrent_lock); #else # define LOCK # define UNLOCK |