aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux
diff options
context:
space:
mode:
authormcgrathr@chromium.org <mcgrathr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-12-10 18:25:45 +0000
committermcgrathr@chromium.org <mcgrathr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-12-10 18:25:45 +0000
commitcd272586eec3fc5d57d49a7cfbe55e7ade5d39a2 (patch)
treea533c2f1814387507aa9510e618a41d5578335ab /src/client/linux
parentautoreconf -f -i (diff)
downloadbreakpad-cd272586eec3fc5d57d49a7cfbe55e7ade5d39a2.tar.xz
Conditionalize use of <cpuid.h> header
This header only exists for x86 environments, but was included unconditionally. That broke the builds for all non-x86 environments. R=mark@chromium.org BUG= Review URL: https://breakpad.appspot.com/824003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1253 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux')
-rw-r--r--src/client/linux/minidump_writer/linux_ptrace_dumper.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
index 0a537a8b..f1582573 100644
--- a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
+++ b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
@@ -40,7 +40,6 @@
#include <asm/ptrace.h>
#include <assert.h>
-#include <cpuid.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
@@ -50,6 +49,10 @@
#include <sys/ptrace.h>
#include <sys/wait.h>
+#if defined(__i386)
+#include <cpuid.h>
+#endif
+
#include "client/linux/minidump_writer/directory_reader.h"
#include "client/linux/minidump_writer/line_reader.h"
#include "common/linux/linux_libc_support.h"