[PATCH 5 of 6] debug/gdb: correct compilation error when stpcpy is a define

Titus von Boxberg titus@v9g.de
Mon Aug 22 07:49:00 GMT 2011


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1313998529 -7200
# Node ID 9c3b8e40d77c0aee9f80a19af6593fea6afd19a9
# Parent  bd1c80d7592bee149d1770ba0b5b6add79535e5f
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>

diff -r bd1c80d7592b -r 9c3b8e40d77c patches/gdb/6.8/150-handle-stpcpy-define.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gdb/6.8/150-handle-stpcpy-define.patch	Mon Aug 22 09:35:29 2011 +0200
@@ -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
+ 

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list