#ifndef _DIRENT_H
-# include <dirstream.h>
# include <dirent/dirent.h>
+# ifndef _ISOMAC
+# include <dirstream.h>
# include <sys/stat.h>
# include <stdbool.h>
libc_hidden_proto (rewinddir)
libc_hidden_proto (scandirat)
libc_hidden_proto (scandirat64)
+# endif
#endif