]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/ltrace/0002-sparc-add-missing-library.h-include.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / ltrace / 0002-sparc-add-missing-library.h-include.patch
1 From 4e58f53b7886420d002e5919f279acd6d7c4afd1 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 22 Dec 2015 21:47:45 +0100
4 Subject: [PATCH] sparc: add missing library.h include
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Fixes the following build failure on sparc:
10
11 plt.c: In function ‘sym2addr’:
12 plt.c:33:12: error: dereferencing pointer to incomplete type
13   return sym->enter_addr;
14             ^
15 plt.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
16
17 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 ---
19  sysdeps/linux-gnu/sparc/plt.c | 1 +
20  1 file changed, 1 insertion(+)
21
22 diff --git a/sysdeps/linux-gnu/sparc/plt.c b/sysdeps/linux-gnu/sparc/plt.c
23 index 3d2e589..959eed1 100644
24 --- a/sysdeps/linux-gnu/sparc/plt.c
25 +++ b/sysdeps/linux-gnu/sparc/plt.c
26 @@ -21,6 +21,7 @@
27  #include <gelf.h>
28  #include "proc.h"
29  #include "common.h"
30 +#include "library.h"
31  
32  GElf_Addr
33  arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
34 -- 
35 2.6.4
36