diff --git a/modules/misc/svg.c b/modules/misc/svg.c
index ee9e8dbc4163d21cd69aeb55c51c35a8d7900c18..bb7b78d414f88e04457c398cb073f7b6be6f8c62 100644
--- a/modules/misc/svg.c
+++ b/modules/misc/svg.c
@@ -28,6 +28,7 @@
 #include <string.h>
 
 #include <vlc/vlc.h>
+#include <vlc_charset.h>
 #include <vlc_vout.h>
 #include <vlc_osd.h>
 #include <vlc_block.h>
@@ -57,7 +58,7 @@ static int  Create    ( vlc_object_t * );
 static void Destroy   ( vlc_object_t * );
 static int  RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
                         subpicture_region_t *p_region_in );
-
+static char *svg_GetTemplate( vlc_object_t *p_this );
 
 /*****************************************************************************
  * Module descriptor