diff --git a/client/mysqltest.c b/client/mysqltest.c
index 839e8cd9a43dba113b9e783b63d6462b39aeec90..3babe46d95430dde33f0976e5c92e6c6930e0a4f 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -33,18 +33,12 @@
 
 #define MTEST_VERSION "3.2"
 
-#include <my_global.h>
-#include <mysql_embed.h>
-#include <my_sys.h>
-#include <m_string.h>
-#include <mysql.h>
+#include "client_priv.h"
 #include <mysql_version.h>
 #include <mysqld_error.h>
-#include <errmsg.h>
 #include <m_ctype.h>
 #include <my_dir.h>
 #include <hash.h>
-#include <my_getopt.h>
 #include <stdarg.h>
 #include <violite.h>
 #include "my_regex.h" /* Our own version of regex */