summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <joerg@trift2.>2007-02-12 15:03:11 +0100
committerunknown <joerg@trift2.>2007-02-12 15:03:11 +0100
commit2a221c8014dd91fa80bbadc71c83f39e6d5704b4 (patch)
tree1922f2a5121f17b76648e5fb4e4a49a367b83093 /mysys
parent5c1f67d31223ca769345eee7209796c552caae27 (diff)
downloadmariadb-git-2a221c8014dd91fa80bbadc71c83f39e6d5704b4.tar.gz
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.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_thr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index 5729f27b7a7..f4fd96b769d 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -60,11 +60,14 @@ static uint get_thread_lib(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();
if (thd_lib_detected == THD_LIB_LT)
thr_client_alarm= SIGALRM;
else
thr_client_alarm= SIGUSR1;
+#endif
if (pthread_key_create(&THR_KEY_mysys,0))
{