about summary refs log tree commit diff
path: root/include/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dirent.h')
-rw-r--r--include/dirent.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 594d90d89f..58d7546c4a 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,5 @@
-#include <dirent/dirent.h>
+#ifndef _DIRENT_H
+# include <dirent/dirent.h>
 
 /* Now define the internal interfaces.  */
 extern DIR *__opendir __P ((__const char *__name));
@@ -9,3 +10,4 @@ extern int __readdir_r __P ((DIR *__dirp, struct dirent *__entry,
 			     struct dirent **__result));
 extern __ssize_t __getdirentries __P ((int __fd, char *__buf,
 				       size_t __nbytes, __off_t *__basep));
+#endif