Fixed misnamed t/t2010-update-cache-badpath.sh
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 0901fae8a459c44f4953a98f957723317da6f234..c06b94107e0e1149be0ad642812e8d4a42f2193c 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -27,6 +27,7 @@
 #define DT_UNKNOWN     0
 #define DT_DIR         1
 #define DT_REG         2
+#define DT_LNK         3
 #define DTYPE(de)      DT_UNKNOWN
 #endif
 
@@ -103,8 +104,8 @@ static inline unsigned int create_ce_mode(unsigned int mode)
 
 #define cache_entry_size(len) ((offsetof(struct cache_entry,name) + (len) + 8) & ~7)
 
-struct cache_entry **active_cache;
-unsigned int active_nr, active_alloc, active_cache_changed;
+extern struct cache_entry **active_cache;
+extern unsigned int active_nr, active_alloc, active_cache_changed;
 
 #define GIT_DIR_ENVIRONMENT "GIT_DIR"
 #define DEFAULT_GIT_DIR_ENVIRONMENT ".git"