]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix broken build on non-Linux systems
authorPetar Jovanovic <mips32r2@gmail.com>
Thu, 16 Mar 2017 13:10:16 +0000 (13:10 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 16 Mar 2017 13:10:16 +0000 (13:10 +0000)
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

coregrind/m_signals.c

index df29567a24688288fc15440ae9b5d7f21b05c6d7..68c1a56a115ba3e80b11508537bc97bdb74c980c 100644 (file)
@@ -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;