]> git.cworth.org Git - notmuch/blobdiff - compat/have_d_type.c
new: Detect dirent.d_type support at configure time
[notmuch] / compat / have_d_type.c
diff --git a/compat/have_d_type.c b/compat/have_d_type.c
new file mode 100644 (file)
index 0000000..9ca6c6e
--- /dev/null
@@ -0,0 +1,10 @@
+#include <dirent.h>
+
+int main()
+{
+    struct dirent ent;
+
+    (void) ent.d_type;
+
+    return 0;
+}