diff --git a/src/config/configuration.h b/src/config/configuration.h
index ec19abc89e0662c24fc830a982a49aedb188b710..ecf96ef4d8f644efff7c8594950bf3a1b65c220c 100644
--- a/src/config/configuration.h
+++ b/src/config/configuration.h
@@ -27,7 +27,6 @@ extern "C" {
 
 /* Internal configuration prototypes and structures */
 
-int  config_CreateDir( vlc_object_t *, const char * );
 int  config_AutoSaveConfigFile( vlc_object_t * );
 
 void config_Free (module_config_t *, size_t);
diff --git a/src/config/file.c b/src/config/file.c
index ae6e8b9ce5887b5d91a1a2691e1b0ee92e873ff5..35cd1e4dfec6cd9aa3fa5ae175416114a93def03 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -267,7 +267,7 @@ int config_LoadConfigFile( vlc_object_t *p_this )
 /*****************************************************************************
  * config_CreateDir: Create configuration directory if it doesn't exist.
  *****************************************************************************/
-int config_CreateDir( vlc_object_t *p_this, const char *psz_dirname )
+static int config_CreateDir( vlc_object_t *p_this, const char *psz_dirname )
 {
     if( !psz_dirname || !*psz_dirname ) return -1;