]> git.notmuchmail.org Git - notmuch/commit
new: Detect dirent.d_type support at configure time
authorAustin Clements <amdragon@MIT.EDU>
Thu, 13 Feb 2014 06:50:59 +0000 (01:50 -0500)
committerDavid Bremner <david@tethera.net>
Fri, 14 Feb 2014 12:42:45 +0000 (08:42 -0400)
commitb1fa95721bd54c60c367ae4fb54279404656a070
tree18c95afc973ea0bbc0a1ba8f88a918e85b72b9e3
parentaaa7f0d92ee9c876c38da43be5c49e8d5c73a99b
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.
compat/have_d_type.c [new file with mode: 0644]
configure
notmuch-new.c