From 92537aa8188624c3c641c6f1ac1f5ad79d92c420 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 2 Jul 2013 02:11:18 +0000 Subject: Linux: Fix builds on systems without PR_SET_PTRACER in linux/prctl.h. R=thakis@chromium.org Review URL: https://breakpad.appspot.com/612002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1199 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc b/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc index 8b43761c..bc7eae61 100644 --- a/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc +++ b/src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc @@ -28,7 +28,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // linux_ptrace_dumper_unittest.cc: -// Unit tests for google_breakpad::LinuxPtraceDumoer. +// Unit tests for google_breakpad::LinuxPtraceDumper. // // This file was renamed from linux_dumper_unittest.cc and modified due // to LinuxDumper being splitted into two classes. @@ -58,6 +58,10 @@ #include "common/memory.h" #include "common/using_std_string.h" +#ifndef PR_SET_PTRACER +#define PR_SET_PTRACER 0x59616d61 +#endif + using namespace google_breakpad; namespace { -- cgit v1.2.1