From f4209c71a24ec563dd876db3a94fad7d2c53b8aa Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 19 Jul 2007 14:14:03 +0200 Subject: [PATCH] Avoid the name conflict between the system-provided "md5.h" and the MySQL one by renaming "include/md5.h" to "include/my_md5.h". Fixes bug#14151. include/my_md5.h: Rename: include/md5.h -> include/my_md5.h --- client/mysqlmanager-pwgen.c | 2 +- include/Makefile.am | 2 +- include/{md5.h => my_md5.h} | 0 mysys/md5.c | 2 +- os2/MySQL-Source.icc | 2 +- sql/item_strfunc.cc | 2 +- sql/table.cc | 2 +- tools/mysqlmanager.c | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename include/{md5.h => my_md5.h} (100%) diff --git a/client/mysqlmanager-pwgen.c b/client/mysqlmanager-pwgen.c index 716a1e4bf4e..7a857c59743 100644 --- a/client/mysqlmanager-pwgen.c +++ b/client/mysqlmanager-pwgen.c @@ -22,7 +22,7 @@ #include #include #include -#include +#include "my_md5.h" const char* outfile=0,*user="root"; diff --git a/include/Makefile.am b/include/Makefile.am index ccd5ac627bf..2cd72052a15 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -32,7 +32,7 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \ mysys_err.h my_base.h help_start.h help_end.h \ my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \ my_aes.h my_tree.h hash.h thr_alarm.h \ - thr_lock.h t_ctype.h violite.h md5.h base64.h \ + thr_lock.h t_ctype.h violite.h my_md5.h base64.h \ mysql_version.h.in my_handler.h my_time.h \ my_user.h my_libwrap.h diff --git a/include/md5.h b/include/my_md5.h similarity index 100% rename from include/md5.h rename to include/my_md5.h diff --git a/mysys/md5.c b/mysys/md5.c index a88fb279a0b..0945f9ce5f4 100644 --- a/mysys/md5.c +++ b/mysys/md5.c @@ -45,7 +45,7 @@ documentation and/or software. #include #include -#include "md5.h" +#include "my_md5.h" /* Constants for MD5Transform routine. */ diff --git a/os2/MySQL-Source.icc b/os2/MySQL-Source.icc index 342cb6c96b9..285811d0eae 100644 --- a/os2/MySQL-Source.icc +++ b/os2/MySQL-Source.icc @@ -31,7 +31,7 @@ group server_global_pch = 'myisam.h', 'myisampack.h', '.\myisam\myisamdef.h', 'sql_string.h', 'item.h', 'unireg.h', 'field.h', 'sql_lex.h', 'sql_list.h', 'sql_repl.h', - 'md5.h', 'sql_acl.h', 'slave.h', + 'my_md5.h', 'sql_acl.h', 'slave.h', 'ha_myisam.h', 'procedure.h', 'sql_select.h', 'errmsg.h', 't_ctype.h', 'direct.h', 'mysys_err.h', 'zconf.h', 'zlib.h', diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 0c24f14c8fe..20a4b64640a 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -28,7 +28,7 @@ #ifdef HAVE_OPENSSL #include #endif /* HAVE_OPENSSL */ -#include "md5.h" +#include "my_md5.h" #include "sha1.h" #include "my_aes.h" C_MODE_START diff --git a/sql/table.cc b/sql/table.cc index 9c3e7618aa0..f24f5c6fbcc 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -19,7 +19,7 @@ #include "mysql_priv.h" #include #include -#include "md5.h" +#include "my_md5.h" /* Functions defined in this file */ diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index f952a5806b4..faed9addf60 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include "my_md5.h" #include #ifdef HAVE_SYS_WAIT_H #include