X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=cache.h;h=af6345820f3f8c533868394059b2d3b189e6b422;hb=5d2f8b2753183e6cf2238a6f2d847e54211ba11f;hp=a10243d192f5444a58a056ef5a21a4386af26fb3;hpb=9da3acfb1942ef28424ea58068faf6ac3a3fc2c8;p=git.git diff --git a/cache.h b/cache.h index a10243d1..af634582 100644 --- a/cache.h +++ b/cache.h @@ -21,6 +21,15 @@ #define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11) #endif +#ifdef DT_UNKNOWN +#define DTYPE(de) ((de)->d_type) +#else +#define DT_UNKNOWN 0 +#define DT_DIR 1 +#define DT_REG 2 +#define DTYPE(de) DT_UNKNOWN +#endif + /* * Basic data structures for the directory cache *