From b1fa95721bd54c60c367ae4fb54279404656a070 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 13 Feb 2014 01:50:59 -0500 Subject: new: Detect dirent.d_type support at configure time Support for dirent.d_type is OS-specific. Previously, we used _DIRENT_HAVE_D_TYPE to detect support for this, but this is apparently a glic-ism (FreeBSD, for example, supports d_type, but does not define this). Since there's no cross-platform way to detect support for dirent.d_type, detect it using a test compile at configure time. --- notmuch-new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'notmuch-new.c') diff --git a/notmuch-new.c b/notmuch-new.c index cd744891..8529fdd3 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -173,7 +173,7 @@ dirent_type (const char *path, const struct dirent *entry) char *abspath; int err, saved_errno; -#ifdef _DIRENT_HAVE_D_TYPE +#if HAVE_D_TYPE /* Mapping from d_type to stat mode_t. We omit DT_LNK so that * we'll fall through to stat and get the real file type. */ static const mode_t modes[] = { -- cgit v1.2.3