modify package name for pkgconfig
[external/libunwind.git] / packaging / fix_builderror.patch
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
5
6 <elf.h> needs to be included before the check for ELF_CLASS.
7 ---
8  src/elfxx.h |    4 ++--
9  1 files changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/src/elfxx.h b/src/elfxx.h
12 index 558a235..f3917ee 100644
13 --- a/src/elfxx.h
14 +++ b/src/elfxx.h
15 @@ -30,6 +30,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
16  #include <sys/mman.h>
17  #include <sys/stat.h>
18  
19 +#include "libunwind_i.h"
20 +
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
26  #endif
27  
28 -#include "libunwind_i.h"
29 -
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,
33 -- 
34 1.7.2.5
35