]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/closedir.c.patch
Libc-498.1.5.tar.gz
[apple/libc.git] / gen / FreeBSD / closedir.c.patch
1 --- closedir.c.orig 2007-01-24 14:10:41.000000000 -0800
2 +++ closedir.c 2007-01-25 00:17:23.000000000 -0800
3 @@ -59,7 +59,9 @@
4
5 if (__isthreaded)
6 _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock);
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;