=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/dirent.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- src/include/dirent.h 2011/07/14 02:16:00 1.23 +++ src/include/dirent.h 2011/07/18 17:29:49 1.24 @@ -1,4 +1,4 @@ -/* $OpenBSD: dirent.h,v 1.23 2011/07/14 02:16:00 deraadt Exp $ */ +/* $OpenBSD: dirent.h,v 1.24 2011/07/18 17:29:49 matthew Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- @@ -97,6 +97,9 @@ #ifndef _KERNEL __BEGIN_DECLS DIR *opendir(const char *); +#if __POSIX_VISIBLE >= 200809 +DIR *fdopendir(int); +#endif struct dirent *readdir(DIR *); void rewinddir(DIR *); int closedir(DIR *);