]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/closedir.c
Libc-825.24.tar.gz
[apple/libc.git] / gen / FreeBSD / closedir.c
index e268572f25b0f68287c87c80ac57b0b173694525..10bfe5ece7836c0c46e9638db76e603df51c8fc7 100644 (file)
@@ -55,7 +55,9 @@ closedir(dirp)
 
        if (__isthreaded)
                _pthread_mutex_lock(&dirp->dd_lock);
+#if !__DARWIN_UNIX03
        _seekdir(dirp, dirp->dd_rewind);        /* free seekdir storage */
+#endif /* __DARWIN_UNIX03 */
        fd = dirp->dd_fd;
        dirp->dd_fd = -1;
        dirp->dd_loc = 0;