diff options
author | svoj@mysql.com/april.(none) <> | 2007-02-07 01:37:21 +0400 |
---|---|---|
committer | svoj@mysql.com/april.(none) <> | 2007-02-07 01:37:21 +0400 |
commit | db8a7b513cbbd3ae6c5d47cb904f7386f1215769 (patch) | |
tree | d528e3ead8992fb52e054d28992ba3843c068e9a /mysys/my_thr_init.c | |
parent | 4a6770e06eddaf8595da3d414764c90502382f88 (diff) | |
download | mariadb-git-db8a7b513cbbd3ae6c5d47cb904f7386f1215769.tar.gz |
Excluded wrongly merged changeset.
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r-- | mysys/my_thr_init.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c index bb502846331..853a2761224 100644 --- a/mysys/my_thr_init.c +++ b/mysys/my_thr_init.c @@ -20,7 +20,6 @@ #include "mysys_priv.h" #include <m_string.h> -#include <signal.h> #ifdef THREAD #ifdef USE_TLS @@ -64,8 +63,6 @@ pthread_handler_t nptl_pthread_exit_hack_handler(void *arg) #endif -static uint get_thread_lib(void); - /* initialize thread environment @@ -79,8 +76,6 @@ static uint get_thread_lib(void); my_bool my_thread_global_init(void) { - thd_lib_detected= get_thread_lib(); - if (pthread_key_create(&THR_KEY_mysys,0)) { fprintf(stderr,"Can't initialize threads: error %d\n",errno); @@ -397,20 +392,4 @@ const char *my_thread_name(void) } #endif /* DBUG_OFF */ - -static uint get_thread_lib(void) -{ - char buff[64]; - -#ifdef _CS_GNU_LIBPTHREAD_VERSION - confstr(_CS_GNU_LIBPTHREAD_VERSION, buff, sizeof(buff)); - - if (!strncasecmp(buff, "NPTL", 4)) - return THD_LIB_NPTL; - if (!strncasecmp(buff, "linuxthreads", 12)) - return THD_LIB_LT; -#endif - return THD_LIB_OTHER; -} - #endif /* THREAD */ |