diff options
author | Austin Clements <amdragon@MIT.EDU> | 2014-02-13 01:50:59 -0500 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-02-14 08:42:45 -0400 |
commit | b1fa95721bd54c60c367ae4fb54279404656a070 (patch) | |
tree | 18c95afc973ea0bbc0a1ba8f88a918e85b72b9e3 /notmuch-new.c | |
parent | aaa7f0d92ee9c876c38da43be5c49e8d5c73a99b (diff) |
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.
Diffstat (limited to 'notmuch-new.c')
-rw-r--r-- | notmuch-new.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[] = { |