summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/dirstream.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-30 13:17:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-30 13:17:44 +0000
commitcd4a3339770a244c6af22e8353423c71d13b8091 (patch)
treefb0c79276363b5094dfdcd0f6f1caf7395b694e8 /libc/misc/dirent/dirstream.h
parente0892f680252571830a3a811d2f9805f318c979e (diff)
Fixup totally broken locking code... No storage for the mutex,
wrong ifdef macro.. -Erik
Diffstat (limited to 'libc/misc/dirent/dirstream.h')
-rw-r--r--libc/misc/dirent/dirstream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/misc/dirent/dirstream.h b/libc/misc/dirent/dirstream.h
index 268ed1c91..92e81af0b 100644
--- a/libc/misc/dirent/dirstream.h
+++ b/libc/misc/dirent/dirstream.h
@@ -26,7 +26,7 @@ Cambridge, MA 02139, USA. */
#include <features.h>
#include <sys/types.h>
-#ifdef _POSIX_THREADS
+#ifdef __UCLIBC_HAS_THREADS__
#include <pthread.h>
#endif
@@ -63,8 +63,8 @@ struct __dirstream {
size_t dd_max;
/* lock */
-#ifdef _POSIX_THREADS
- pthread_mutex_t *dd_lock;
+#ifdef __UCLIBC_HAS_THREADS__
+ pthread_mutex_t dd_lock;
#else
void *dd_lock;
#endif