summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2008-04-03 11:32:00 -0400
committercmiller@zippy.cornsilk.net <>2008-04-03 11:32:00 -0400
commit9ff7a0cedca7b92b5c16f282e52e83460a6d7092 (patch)
treec831693e16e1a99024c7a4ae4fe1d84087150eca /sql-common
parent3bff5b59c669fa14645fb4705b2406bd2ba0e120 (diff)
downloadmariadb-git-9ff7a0cedca7b92b5c16f282e52e83460a6d7092.tar.gz
Bug#26294: library name conflict between MySQL 4.x, 5.0 and Qt 3.3
When linking with some external programs, "multiple definition of `init_time'" Rename init_time() to my_init_time() to avoid collision with other libraries (particularly libmng).
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/my_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index ecc5aaf8af2..1781251fca1 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -704,9 +704,9 @@ int check_time_range(struct st_mysql_time *my_time, int *warning)
Prepare offset of system time zone from UTC for my_system_gmt_sec() func.
SYNOPSIS
- init_time()
+ my_init_time()
*/
-void init_time(void)
+void my_init_time(void)
{
time_t seconds;
struct tm *l_time,tm_tmp;
@@ -795,7 +795,7 @@ long calc_daynr(uint year,uint month,uint day)
NOTES
The idea is to cache the time zone offset from UTC (including daylight
saving time) for the next call to make things faster. But currently we
- just calculate this offset during startup (by calling init_time()
+ just calculate this offset during startup (by calling my_init_time()
function) and use it all the time.
Time value provided should be legal time value (e.g. '2003-01-01 25:00:00'
is not allowed).