From cd4a3339770a244c6af22e8353423c71d13b8091 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 30 May 2002 13:17:44 +0000 Subject: Fixup totally broken locking code... No storage for the mutex, wrong ifdef macro.. -Erik --- libc/misc/dirent/opendir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc/dirent/opendir.c') 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; } -- cgit v1.2.3