aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2016-05-18 12:56:22 -0700
committerYunlian Jiang <yunlian@google.com>2016-05-18 12:56:22 -0700
commit9eb2c6fe6caacdc2c063274ca4d81aa7a4633143 (patch)
tree07cf79ff9dd03daf1624cd80a9fa71391bd0bd76
parentDon't let PDBSourceLineWriter::GetSymbolFunctionName return empty function names (diff)
downloadbreakpad-9eb2c6fe6caacdc2c063274ca4d81aa7a4633143.tar.xz
Use elf.h inside the package.
MAC does not have elf.h, so use the elf.h inside the package instead of the one in the system. One failure example is https://codereview.chromium.org/1978803003/ TEST=make; make check BUG= R=michaelbai@chromium.org Review URL: https://codereview.chromium.org/1984713002 .
-rw-r--r--src/common/dwarf/elf_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dwarf/elf_reader.cc b/src/common/dwarf/elf_reader.cc
index b41faa6e..a1f73cd1 100644
--- a/src/common/dwarf/elf_reader.cc
+++ b/src/common/dwarf/elf_reader.cc
@@ -35,7 +35,6 @@
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
-#include <elf.h>
#include <string.h>
#include <algorithm>
@@ -44,6 +43,7 @@
#include <vector>
#include "zlib.h"
+#include "common/android/include/elf.h"
#include "elf_reader.h"
//#include "using_std_string.h"
// EM_AARCH64 is not defined by elf.h of GRTE v3 on x86.