diff options
-rw-r--r-- | macros/gnome-support.m4 | 2 | ||||
-rw-r--r-- | macros/need-declaration.m4 | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4 index df25cb9c1b..4123449483 100644 --- a/macros/gnome-support.m4 +++ b/macros/gnome-support.m4 @@ -49,7 +49,7 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[ # see if we need to declare some functions. Solaris is notorious for # putting functions into the `libc' but not listing them in the headers - AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h) + AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h dirent.h) GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir) # Turn our LIBOBJS into libtool objects. This is gross, but it 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")]) |