From 31fb617ab28e2970d32dfc03bd096fbf563cd1f4 Mon Sep 17 00:00:00 2001 From: Titus von Boxberg Date: Mon, 22 Aug 2011 09:35:29 +0200 Subject: debug/gdb: correct compilation error when stpcpy is a define On OSX stpcpy is a define which is not recognized by gdb's configure. This results in a compilation error. Reported-by: "Guylhem Aznar" Signed-off-by: "Titus von Boxberg" (transplanted from 8cadd5a4c6113f9c7107f1c8d3b29ef310f1ed30) diff --git a/patches/gdb/6.8/150-handle-stpcpy-define.patch b/patches/gdb/6.8/150-handle-stpcpy-define.patch new file mode 100644 index 0000000..88d703f --- /dev/null +++ b/patches/gdb/6.8/150-handle-stpcpy-define.patch @@ -0,0 +1,12 @@ +diff -ru gdb-6.8.orig/bfd/sysdep.h gdb-6.8/bfd/sysdep.h +--- gdb-6.8.orig/bfd/sysdep.h 2007-07-03 16:26:42.000000000 +0200 ++++ gdb-6.8/bfd/sysdep.h 2011-08-21 13:33:47.000000000 +0200 +@@ -131,7 +131,7 @@ + extern PTR realloc (); + #endif + +-#if !HAVE_DECL_STPCPY ++#if !HAVE_DECL_STPCPY && !defined(stpcpy) + extern char *stpcpy (char *__dest, const char *__src); + #endif + -- cgit v0.10.2-6-g49f6