summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2009-06-08 19:24:37 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2009-06-08 19:24:37 +0000
commit71380867556d6bbc311a96a00a67969c0aa88b55 (patch)
tree7cb3df92c5585db9dc231c38e6dc02d56932dde3 /include
parentca1007a9efab85743e11a618fac8d67dc1e19cd3 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index d686dafc8e9f..3c2f0715f8cb 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -60,6 +60,7 @@
#define DIRBLKSIZ 1024
struct _telldir; /* see telldir.h */
+struct pthread_mutex;
/* structure describing an open directory. */
typedef struct _dirdesc {
@@ -71,7 +72,7 @@ typedef struct _dirdesc {
long dd_seek; /* magic cookie returned by getdirentries */
long dd_rewind; /* magic cookie for rewinding */
int dd_flags; /* flags for readdir */
- void *dd_lock; /* hack to avoid including <pthread.h> */
+ struct pthread_mutex *dd_lock; /* lock */
struct _telldir *dd_td; /* telldir position recording */
} DIR;