diff --git a/global/global.c b/global/global.c
index e406e89..0f0a430 100644
--- a/global/global.c
+++ b/global/global.c
@@ -131,7 +131,7 @@ int debug;
int literal; /**< 1: literal search */
int print0; /**< --print0 option */
int format;
-int type; /**< path conversion type */
+extern int type; /**< path conversion type */
int match_part; /**< match part only */
int abslib; /**< absolute path only in library project */
int use_color; /**< coloring */