debug/gdb: correct compilation error when stpcpy is a define
authorTitus von Boxberg <titus@v9g.de>
Mon Aug 22 09:35:29 2011 +0200 (2011-08-22)
changeset 26298cadd5a4c611
parent 2628 a4f56e266879
child 2630 f86af11138ea
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" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
patches/gdb/6.8/150-handle-stpcpy-define.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gdb/6.8/150-handle-stpcpy-define.patch	Mon Aug 22 09:35:29 2011 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +diff -ru gdb-6.8.orig/bfd/sysdep.h gdb-6.8/bfd/sysdep.h
     1.5 +--- gdb-6.8.orig/bfd/sysdep.h	2007-07-03 16:26:42.000000000 +0200
     1.6 ++++ gdb-6.8/bfd/sysdep.h	2011-08-21 13:33:47.000000000 +0200
     1.7 +@@ -131,7 +131,7 @@
     1.8 + extern PTR realloc ();
     1.9 + #endif
    1.10 + 
    1.11 +-#if !HAVE_DECL_STPCPY
    1.12 ++#if !HAVE_DECL_STPCPY && !defined(stpcpy)
    1.13 + extern char *stpcpy (char *__dest, const char *__src);
    1.14 + #endif
    1.15 +