]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/opendir.c.patch
Libc-391.4.3.tar.gz
[apple/libc.git] / gen / FreeBSD / opendir.c.patch
CommitLineData
3d9156a7
A
1--- /Volumes/XDisk/tmp/Libc/gen/FreeBSD/opendir.c.orig 2004-08-14 10:46:10.000000000 -0700
2+++ /Volumes/XDisk/tmp/Libc/gen/FreeBSD/opendir.c 2004-10-24 17:08:28.000000000 -0700
9385eb3d
A
3@@ -48,6 +48,7 @@
4 #include <stdlib.h>
5 #include <string.h>
6 #include <unistd.h>
7+#include <pthread.h>
8 #include "un-namespace.h"
9
10 #include "telldir.h"
3d9156a7 11@@ -269,7 +270,7 @@
9385eb3d
A
12 dirp->dd_loc = 0;
13 dirp->dd_fd = fd;
14 dirp->dd_flags = flags;
15- dirp->dd_lock = NULL;
16+ dirp->dd_lock = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;
17
18 /*
19 * Set up seek point for rewinddir.