diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 3801448b..83098498 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -625,7 +625,7 @@ struct system_variables global_system_variables;
 struct system_variables max_system_variables;
 struct system_status_var global_status_var;
 
-MY_TMPDIR mysql_tmpdir_list;
+extern MY_TMPDIR mysql_tmpdir_list;
 MY_BITMAP temp_pool;
 
 CHARSET_INFO *system_charset_info, *files_charset_info ;
diff --git a/storage/innobase/xtrabackup/src/xbstream.c b/storage/innobase/xtrabackup/src/xbstream.c
index 611f8c04..f0c57588 100644
--- a/storage/innobase/xtrabackup/src/xbstream.c
+++ b/storage/innobase/xtrabackup/src/xbstream.c
@@ -55,7 +55,7 @@ datasink_t datasink_xbstream;
 datasink_t datasink_compress;
 datasink_t datasink_tmpfile;
 datasink_t datasink_encrypt;
-datasink_t datasink_buffer;
+extern datasink_t datasink_buffer;
 
 static run_mode_t	opt_mode;
 static char *		opt_directory = NULL;
