3342ec0c8f
And minor update of comments in patches. Bump PKGREVISION.
17 lines
620 B
Text
17 lines
620 B
Text
$NetBSD: patch-cb,v 1.4 2011/08/02 16:15:08 taca Exp $
|
|
|
|
* Before calling sigsend(), make sure the function actuall exists.
|
|
Fixes the build on NetBSD >= 4.99.49, in which the macro P_MYID
|
|
is defined somewhere unrelated to signals.
|
|
|
|
--- libmysqld/stacktrace.c.orig 2010-01-15 09:49:23.000000000 +0000
|
|
+++ libmysqld/stacktrace.c
|
|
@@ -271,7 +271,7 @@ void 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
|