summaryrefslogtreecommitdiff
path: root/packages/gdb/6.8a/150-handle-stpcpy-define.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-07-13 07:38:03 (GMT)
committerGitHub <noreply@github.com>2017-07-13 07:38:03 (GMT)
commit45c5bb0f484cba724be2c6105801dcce9a1a82d9 (patch)
tree8fd1c8eaa2ef203009d72b6ca6348611dcc5ee1c /packages/gdb/6.8a/150-handle-stpcpy-define.patch
parent8f8e131d566af1f577d8fb6e62e6f121b7955472 (diff)
parentb32fcf7c1eea890a2bd3f88487f818ba241aabb1 (diff)
Merge pull request #767 from stilor/packages
Packages
Diffstat (limited to 'packages/gdb/6.8a/150-handle-stpcpy-define.patch')
-rw-r--r--packages/gdb/6.8a/150-handle-stpcpy-define.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/gdb/6.8a/150-handle-stpcpy-define.patch b/packages/gdb/6.8a/150-handle-stpcpy-define.patch
new file mode 100644
index 0000000..88d703f
--- /dev/null
+++ b/packages/gdb/6.8a/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
+