File crash-missing-declarations.patch of Package crash

From: Petr Tesarik <ptesarik@suse.cz>
Subject: Add missing includes

This fixes a compilation failure on ppc64.

---
 gdb-7.0.patch |   10 ++++++++++
 1 file changed, 10 insertions(+)

--- a/gdb-7.0.patch
+++ b/gdb-7.0.patch
@@ -1296,3 +1296,13 @@
  
    /* Existing PSYMTABS_ADDRMAP mapping is present even for PARTIAL_SYMTABs
       which still have no corresponding full SYMTABs read.  But it is not
+--- gdb-7.0/sim/common/gentmap.c.orig
++++ gdb-7.0/sim/common/gentmap.c
+@@ -2,6 +2,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ 
+ struct tdefs {
+   char *symbol;
openSUSE Build Service is sponsored by