]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/opendir.c.patch
Libc-391.4.1.tar.gz
[apple/libc.git] / gen / FreeBSD / opendir.c.patch
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
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"
11 @@ -269,7 +270,7 @@
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.