summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/readdir64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/dirent/readdir64.c')
-rw-r--r--libc/misc/dirent/readdir64.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/misc/dirent/readdir64.c b/libc/misc/dirent/readdir64.c
index f798c6fbb..8d22a314e 100644
--- a/libc/misc/dirent/readdir64.c
+++ b/libc/misc/dirent/readdir64.c
@@ -31,9 +31,7 @@ struct dirent64 *readdir64(DIR * dir)
return NULL;
}
-#ifdef __UCLIBC_HAS_THREADS__
__pthread_mutex_lock(&(dir->dd_lock));
-#endif
do {
if (dir->dd_size <= dir->dd_nextloc) {
@@ -59,9 +57,7 @@ struct dirent64 *readdir64(DIR * dir)
} while (de->d_ino == 0);
all_done:
-#ifdef __UCLIBC_HAS_THREADS__
__pthread_mutex_unlock(&(dir->dd_lock));
-#endif
return de;
}