mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 01:28:53 +00:00
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>
This commit is contained in:
parent
2cdbc6e370
commit
711ac75ad0
12
patches/gdb/6.8/150-handle-stpcpy-define.patch
Normal file
12
patches/gdb/6.8/150-handle-stpcpy-define.patch
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user