t4011: "sleep 1" is not enough on FAT
[git.git] / cache.h
diff --git a/cache.h b/cache.h
index 29c9e81..3d79c55 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -10,7 +10,7 @@
 #define deflateBound(c,s)  ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
 #endif
 
-#ifdef DT_UNKNOWN
+#if defined(DT_UNKNOWN) && !NO_D_TYPE_IN_DIRENT
 #define DTYPE(de)      ((de)->d_type)
 #else
 #define DT_UNKNOWN     0