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
This commit is contained in:
mcgrathr@chromium.org 2013-12-10 18:25:45 +00:00
parent b76bb512a0
commit cd272586ee

View File

@ -40,7 +40,6 @@
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <assert.h> #include <assert.h>
#include <cpuid.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
@ -50,6 +49,10 @@
#include <sys/ptrace.h> #include <sys/ptrace.h>
#include <sys/wait.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/directory_reader.h"
#include "client/linux/minidump_writer/line_reader.h" #include "client/linux/minidump_writer/line_reader.h"
#include "common/linux/linux_libc_support.h" #include "common/linux/linux_libc_support.h"