Commit | Line | Data |
---|---|---|
9385eb3d A |
1 | --- opendir.c.orig Fri Jan 3 16:18:50 2003 |
2 | +++ opendir.c Sat May 3 15:00:52 2003 | |
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 | @@ -268,7 +269,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. |