diff options
author | Titus von Boxberg" <titus@v9g.de> | 2011-08-22 09:35:29 +0200 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2011-08-22 09:35:29 +0200 |
commit | 711ac75ad0dbbf8e1dbc3a95f82df7a36505b7d2 (patch) | |
tree | 991065c9c742926eb57409fb46fc780859dff227 /patches | |
parent | 2cdbc6e3703044816f042ee2f734fca05d7b5a33 (diff) | |
download | crosstool-ng-711ac75ad0dbbf8e1dbc3a95f82df7a36505b7d2.tar.gz crosstool-ng-711ac75ad0dbbf8e1dbc3a95f82df7a36505b7d2.tar.bz2 crosstool-ng-711ac75ad0dbbf8e1dbc3a95f82df7a36505b7d2.zip |
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>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/gdb/6.8/150-handle-stpcpy-define.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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 00000000..88d703ff --- /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 + |