From: Petar Jovanovic Date: Thu, 16 Mar 2017 13:10:16 +0000 (+0000) Subject: Fix broken build on non-Linux systems X-Git-Tag: svn/VALGRIND_3_13_0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a9da5927f7da4894aa1210ba9a89c87514a564e;p=thirdparty%2Fvalgrind.git Fix broken build on non-Linux systems After r16273, non-Linux Valgrind builds report: m_signals.c:1732:36: error: 'VKI_PT_PTRACED' undeclared (first use in this function) Fix the issue with #if defined(VGO_linux) for the reported code. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16275 --- diff --git a/coregrind/m_signals.c b/coregrind/m_signals.c index df29567a24..68c1a56a11 100644 --- a/coregrind/m_signals.c +++ b/coregrind/m_signals.c @@ -1729,11 +1729,13 @@ static void default_action(const vki_siginfo_t *info, ThreadId tid) if (!terminate) return; /* nothing to do */ +#if defined(VGO_linux) if (terminate && (tst->ptrace & VKI_PT_PTRACED) && (sigNo != VKI_SIGKILL)) { VG_(kill)(VG_(getpid)(), VKI_SIGSTOP); return; } +#endif could_core = core;