summaryrefslogtreecommitdiff
path: root/databases/mysql55-client/patches/patch-mysys_stacktrace.c
blob: 14aff856bf7106fc308c37f997a572fa1df8fb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-mysys_stacktrace.c,v 1.2 2012/10/01 15:54:40 adam Exp $

--- mysys/stacktrace.c.orig	2011-03-31 13:36:16.000000000 +0000
+++ mysys/stacktrace.c
@@ -431,7 +431,7 @@ void my_write_core(int sig)
   __gcov_flush();
 #endif
   pthread_kill(pthread_self(), sig);
-#if defined(P_MYID) && !defined(SCO)
+#if HAVE_SIGSEND && defined(P_MYID) && !defined(SCO)
   /* On Solaris, the above kill is not enough */
   sigsend(P_PID,P_MYID,sig);
 #endif