summaryrefslogtreecommitdiffstats
path: root/include/dirent.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2007-11-20 01:49:00 +0000
committerjb <jb@FreeBSD.org>2007-11-20 01:49:00 +0000
commitbaefe019d5c0db9d2d1f01b2bf872db3d31a0dff (patch)
tree8d544b67891feac28b9271abcfc74faf8a463594 /include/dirent.h
parent9b945d63ed8860abece40483c80cad15edba8186 (diff)
downloadFreeBSD-src-baefe019d5c0db9d2d1f01b2bf872db3d31a0dff.zip
FreeBSD-src-baefe019d5c0db9d2d1f01b2bf872db3d31a0dff.tar.gz
Use a forward definition of an opaque structure rather than a void
to avoid a strict alias type check failure in gcc 4.2.
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index d686daf..3c2f071 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;
OpenPOWER on IntegriCloud