diff --git a/include/types/map.h b/include/types/map.h index 15a0ef8b1..68f1a3638 100644 --- a/include/types/map.h +++ b/include/types/map.h @@ -29,7 +29,7 @@ * * "maps" is the list head. This list cotains all the mao file name identifier. */ -struct list maps = LIST_HEAD_INIT(maps); /* list of struct map_reference */ +extern struct list maps; struct map_reference { struct list list; /* used for listing */ diff --git a/src/map.c b/src/map.c index 4b1aeb567..81c61eb95 100644 --- a/src/map.c +++ b/src/map.c @@ -22,6 +22,8 @@ #include #include +struct list maps = LIST_HEAD_INIT(maps); /* list of struct map_reference */ + /* This function return existing map reference or return NULL. */ static struct map_reference *map_get_reference(const char *reference) {