diff options
Diffstat (limited to 'libc/misc/dirent/opendir.c')
-rw-r--r-- | libc/misc/dirent/opendir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c index 48911ce32..cae8800d8 100644 --- a/libc/misc/dirent/opendir.c +++ b/libc/misc/dirent/opendir.c @@ -51,8 +51,8 @@ DIR *opendir(const char *name) return NULL; } ptr->dd_buf = buf; -#ifdef _POSIX_THREADS - pthread_mutex_init(ptr->dd_lock, NULL); +#ifdef __UCLIBC_HAS_THREADS__ + pthread_mutex_init(&(ptr->dd_lock), NULL); #endif return ptr; } |