]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/closedir.c.patch
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / closedir.c.patch
CommitLineData
1f2f436a
A
1--- closedir.c.orig 2009-11-07 15:27:55.000000000 -0800
2+++ closedir.c 2009-11-07 15:28:09.000000000 -0800
3@@ -55,7 +55,9 @@ closedir(dirp)
224c7076
A
4
5 if (__isthreaded)
1f2f436a 6 _pthread_mutex_lock(&dirp->dd_lock);
224c7076
A
7+#if !__DARWIN_UNIX03
8 _seekdir(dirp, dirp->dd_rewind); /* free seekdir storage */
9+#endif /* __DARWIN_UNIX03 */
10 fd = dirp->dd_fd;
11 dirp->dd_fd = -1;
12 dirp->dd_loc = 0;