diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-06 01:29:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-06 01:29:10 +0000 |
commit | aab07d0500d06e1de93280cb9900b24fd0c0875b (patch) | |
tree | 7122ec94b0498c150b69401a13f06aaea803cf50 /libc/misc/dirent/closedir.c | |
parent | 680f8428162687caae571090e008b42d18f2bb5a (diff) |
macro out the thread funcs in libc if threading is disabled
Diffstat (limited to 'libc/misc/dirent/closedir.c')
-rw-r--r-- | libc/misc/dirent/closedir.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/misc/dirent/closedir.c b/libc/misc/dirent/closedir.c index 57600ab69..25c424566 100644 --- a/libc/misc/dirent/closedir.c +++ b/libc/misc/dirent/closedir.c @@ -19,14 +19,10 @@ int closedir(DIR * dir) __set_errno(EBADF); return -1; } -#ifdef __UCLIBC_HAS_THREADS__ __pthread_mutex_lock(&(dir->dd_lock)); -#endif fd = dir->dd_fd; dir->dd_fd = -1; -#ifdef __UCLIBC_HAS_THREADS__ __pthread_mutex_unlock(&(dir->dd_lock)); -#endif free(dir->dd_buf); free(dir); return __close(fd); |