X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=cache.h;h=b493b65b74d31aa146ac3af80c5cd24967bce816;hb=fc5be4fdaa063a667d17ae40e4ad130e2177b0f8;hp=29c9e819d61ccb93167d5f22c8280f75014872f9;hpb=c4e804bbf0c16aa0c2234ea733fba73de28bddaa;p=git.git diff --git a/cache.h b/cache.h index 29c9e819..b493b65b 100644 --- a/cache.h +++ b/cache.h @@ -10,9 +10,13 @@ #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 +#undef DT_UNKNOWN +#undef DT_DIR +#undef DT_REG +#undef DT_LNK #define DT_UNKNOWN 0 #define DT_DIR 1 #define DT_REG 2