1From 4e58f53b7886420d002e5919f279acd6d7c4afd1 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Tue, 22 Dec 2015 21:47:45 +0100 4Subject: [PATCH] sparc: add missing library.h include 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9Fixes the following build failure on sparc: 10 11plt.c: In function ‘sym2addr’: 12plt.c:33:12: error: dereferencing pointer to incomplete type 13 return sym->enter_addr; 14 ^ 15plt.c:34:1: warning: control reaches end of non-void function [-Wreturn-type] 16 17Signed-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 22diff --git a/sysdeps/linux-gnu/sparc/plt.c b/sysdeps/linux-gnu/sparc/plt.c 23index 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-- 352.6.4 36 37