|
From: <sv...@va...> - 2017-03-16 13:10:29
|
Author: petarj
Date: Thu Mar 16 13:10:16 2017
New Revision: 16275
Log:
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.
Modified:
trunk/coregrind/m_signals.c
Modified: trunk/coregrind/m_signals.c
==============================================================================
--- trunk/coregrind/m_signals.c (original)
+++ trunk/coregrind/m_signals.c Thu Mar 16 13:10:16 2017
@@ -1729,11 +1729,13 @@
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;
|