Commit 2a221c80 authored by unknown's avatar unknown

Compile error on Windows: Signal names are undefined. Fix by hiding the whole section.


mysys/my_thr_init.c:
  Compile error on Windows: Both "SIGALRM" and "SIGUSR1" are undefined.
  Fix by hiding the whole section, according to Jani it is not needed on Windows.
parent 5c1f67d3
...@@ -60,11 +60,14 @@ static uint get_thread_lib(void); ...@@ -60,11 +60,14 @@ static uint get_thread_lib(void);
my_bool my_thread_global_init(void) my_bool my_thread_global_init(void)
{ {
#if defined(SIGALRM) || defined(SIGUSR1)
/* On Windows, these signals are not defined, but this whole part is not needed. */
thd_lib_detected= get_thread_lib(); thd_lib_detected= get_thread_lib();
if (thd_lib_detected == THD_LIB_LT) if (thd_lib_detected == THD_LIB_LT)
thr_client_alarm= SIGALRM; thr_client_alarm= SIGALRM;
else else
thr_client_alarm= SIGUSR1; thr_client_alarm= SIGUSR1;
#endif
if (pthread_key_create(&THR_KEY_mysys,0)) if (pthread_key_create(&THR_KEY_mysys,0))
{ {
......
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