blob: 1542b4d79a3af071d8cb2b1d0183b2a398472ec8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-mysys_stacktrace.c,v 1.1.1.1 2011/04/25 21:12:53 adam Exp $
--- mysys/stacktrace.c.orig 2011-03-31 13:36:16.000000000 +0000
+++ mysys/stacktrace.c
@@ -421,7 +421,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
|