1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gdb/6.8a/150-handle-stpcpy-define.patch Mon Nov 28 16:05:23 2011 +0800
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 +