summaryrefslogtreecommitdiff
path: root/mysys/my_thr_init.c
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2011-04-13 16:05:26 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2011-04-13 16:05:26 -0300
commit8aadfb40655bec8e4e861e92c031a4216edddb5e (patch)
treeb4caa0a40b52840b8390b3bb71d1fc50f1cd14bc /mysys/my_thr_init.c
parent8b22d8c2ecb77336427eadb957669a3f0ef89513 (diff)
downloadmariadb-git-8aadfb40655bec8e4e861e92c031a4216edddb5e.tar.gz
Remove some leftovers from the removal of the gethostbyname wrappers.
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r--mysys/my_thr_init.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index 28f6412ed5b..b30d99565fa 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -34,9 +34,6 @@ uint my_thread_end_wait_time= 5;
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_t LOCK_localtime_r;
#endif
-#ifndef HAVE_GETHOSTBYNAME_R
-mysql_mutex_t LOCK_gethostbyname_r;
-#endif
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_t my_fast_mutexattr;
#endif
@@ -222,10 +219,6 @@ my_bool my_thread_global_init(void)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_init(key_LOCK_localtime_r, &LOCK_localtime_r, MY_MUTEX_INIT_SLOW);
#endif
-#ifndef HAVE_GETHOSTBYNAME_R
- mysql_mutex_init(key_LOCK_gethostbyname_r,
- &LOCK_gethostbyname_r, MY_MUTEX_INIT_SLOW);
-#endif
#ifdef _MSC_VER
install_sigabrt_handler();
@@ -289,9 +282,6 @@ void my_thread_global_end(void)
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
mysql_mutex_destroy(&LOCK_localtime_r);
#endif
-#ifndef HAVE_GETHOSTBYNAME_R
- mysql_mutex_destroy(&LOCK_gethostbyname_r);
-#endif
my_thread_global_init_done= 0;
}