summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-01-05 22:15:47 +0000
committerMartin Baulig <martin@src.gnome.org>1999-01-05 22:15:47 +0000
commit614c9bede8a5ec1017c5695bfee70a08458d38aa (patch)
treebcddb12884c2609589f95e78c9ba25cdef290933
parentad718b30797bc9d0db86392fbff55dc244a6f04c (diff)
downloadgnome-common-614c9bede8a5ec1017c5695bfee70a08458d38aa.tar.gz
Applied patch for DG/UX from Marc J. Fraioli:
* macros/gnome-support.m4: Check whether we need to declare scandir (). * support/gnomesupport.awk: Declare scandir () if necessary. svn path=/trunk/; revision=558
-rw-r--r--macros/gnome-support.m42
-rw-r--r--support/gnomesupport.awk2
2 files changed, 2 insertions, 2 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
index bfdad36..df25cb9 100644
--- a/macros/gnome-support.m4
+++ b/macros/gnome-support.m4
@@ -50,7 +50,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)
- GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
+ GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize scandir)
# Turn our LIBOBJS into libtool objects. This is gross, but it
# requires changes to autoconf before it goes away.
diff --git a/support/gnomesupport.awk b/support/gnomesupport.awk
index e529be5..69b94df 100644
--- a/support/gnomesupport.awk
+++ b/support/gnomesupport.awk
@@ -84,7 +84,7 @@ END {
print "int mkstemp (char */*template*/);";
}
- if (!def["HAVE_SCANDIR"]) {
+ if (!def["HAVE_SCANDIR"] || def["NEED_DECLARATION_SCANDIR"]) {
print "";
print "/* Scan the directory DIR, calling SELECTOR on each directory";
print " entry. Entries for which SELECTOR returns nonzero are";