diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-05-30 13:17:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-05-30 13:17:44 +0000 |
commit | cd4a3339770a244c6af22e8353423c71d13b8091 (patch) | |
tree | fb0c79276363b5094dfdcd0f6f1caf7395b694e8 /libc/misc/dirent/opendir.c | |
parent | e0892f680252571830a3a811d2f9805f318c979e (diff) |
Fixup totally broken locking code... No storage for the mutex,
wrong ifdef macro..
-Erik
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; } |