1 From d41a453bbf195818e3fa66ed0a123f0c06aa754b Mon Sep 17 00:00:00 2001
2 From: Arun Sharma <asharma@fb.com>
3 Date: Sun, 19 May 2013 00:04:15 -0700
4 Subject: [PATCH] Fix a build error
6 <elf.h> needs to be included before the check for ELF_CLASS.
9 1 files changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/src/elfxx.h b/src/elfxx.h
12 index 558a235..f3917ee 100644
15 @@ -30,6 +30,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
19 +#include "libunwind_i.h"
21 #if ELF_CLASS == ELFCLASS32
22 # define ELF_W(x) ELF32_##x
23 # define Elf_W(x) Elf32_##x
24 @@ -40,8 +42,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
25 # define elf_w(x) _Uelf64_##x
28 -#include "libunwind_i.h"
30 extern int elf_w (get_proc_name) (unw_addr_space_t as,
31 pid_t pid, unw_word_t ip,
32 char *buf, size_t len,