mysys/my_thr_init.c : Avoid warnings of "unused variable" by extending a '#ifdef'.

parent fd1d4f86
...@@ -403,9 +403,9 @@ const char *my_thread_name(void) ...@@ -403,9 +403,9 @@ const char *my_thread_name(void)
static uint get_thread_lib(void) static uint get_thread_lib(void)
{ {
#ifdef _CS_GNU_LIBPTHREAD_VERSION
char buff[64]; char buff[64];
#ifdef _CS_GNU_LIBPTHREAD_VERSION
confstr(_CS_GNU_LIBPTHREAD_VERSION, buff, sizeof(buff)); confstr(_CS_GNU_LIBPTHREAD_VERSION, buff, sizeof(buff));
if (!strncasecmp(buff, "NPTL", 4)) if (!strncasecmp(buff, "NPTL", 4))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment