aboutsummaryrefslogtreecommitdiffstats
path: root/macros/need-declaration.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/need-declaration.m4')
-rw-r--r--macros/need-declaration.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
index d5b7bc66d5..eea5bcd640 100644
--- a/macros/need-declaration.m4
+++ b/macros/need-declaration.m4
@@ -18,6 +18,9 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1,
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_DIRENT_H
+#include <dirent.h>
+#endif
$2],
[char *(*pfn) = (char *(*)) $1],
eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])