diff options
| author | John Birrell <jb@FreeBSD.org> | 2007-11-20 01:49:00 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 2007-11-20 01:49:00 +0000 |
| commit | 6276af0ff19da39b3368dbce16cd7356177f8b1b (patch) | |
| tree | 8d544b67891feac28b9271abcfc74faf8a463594 | |
| parent | 844b78330c64f32c07ba8f1b44200bcf35fad401 (diff) | |
Notes
| -rw-r--r-- | include/dirent.h | 3 |
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; |
