]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
new: Detect dirent.d_type support at configure time
[notmuch] / notmuch-new.c
index cd744891c2439982ac3851435aa66ea1ed7e07fa..8529fdd3eac7e4214c47ef24317bed961b2912b5 100644 (file)
@@ -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[] = {