From 5cd1e56cd28ee18ab863951bc242e99e42d85a1a Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 28 Jun 2011 08:37:41 +0300 Subject: [PATCH] Enable GLOB_ONLYDIR of the bundled glob() on platforms that support it --- configure.ac | 2 +- misc/glob.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 64c5509..9e5d112 100644 --- a/configure.ac +++ b/configure.ac @@ -340,7 +340,7 @@ AM_GNU_GETTEXT([external]) dnl Checks for header files we can live without. AC_HEADER_STDC AC_HEADER_MAJOR -AC_HEADER_DIRENT +AC_STRUCT_DIRENT_D_TYPE AC_CHECK_HEADERS(limits.h) AC_CHECK_HEADERS(fcntl.h getopt.h) diff --git a/misc/glob.c b/misc/glob.c index bf2dcb6..3bebe9e 100644 --- a/misc/glob.c +++ b/misc/glob.c @@ -1056,7 +1056,7 @@ glob_in_dir (const char *pattern, const char *directory, int flags, if (! REAL_DIR_ENTRY (d)) continue; -#ifdef HAVE_D_TYPE +#ifdef HAVE_STRUCT_DIRENT_D_TYPE /* If we shall match only directories use the information provided by the dirent call if possible. */ if ((flags & GLOB_ONLYDIR) -- 2.7.4