Index: gui/cfg.c =================================================================== --- gui/cfg.c (revision 26453) +++ gui/cfg.c (revision 26454) @@ -83,7 +83,7 @@ extern int stop_xscreensaver; extern int m_config_parse_config_file(m_config_t* config, char *conffile); -int disable_gui_conf=0; +extern int disable_gui_conf; static m_config_t * gui_conf; static const m_option_t gui_opts[] = Index: mpcommon.c =================================================================== --- mpcommon.c (revision 26453) +++ mpcommon.c (revision 26454) @@ -210,7 +210,9 @@ /* Parse -noconfig common to both programs */ int disable_system_conf=0; int disable_user_conf=0; -extern int disable_gui_conf; +#ifdef HAVE_NEW_GUI +int disable_gui_conf=0; +#endif /* HAVE_NEW_GUI */ /* Disable all configuration files */ static void noconfig_all(void)