• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 6b165782ea8637aecbcd283f076d4fb2c08b3afb Mon Sep 17 00:00:00 2001
2From: Chao-Ying Fu <fu@mips.com>
3Date: Fri, 20 Apr 2012 15:54:22 +0200
4Subject: ndk: Fix MIPS builds on Darwin
5
6Change-Id: I11466da22a4101a5317d2254d7c5b8f16b755b8a
7---
8 gdb-6.6/bfd/sysdep.h            |    2 ++
9 gdb-6.6/sim/common/sim-signal.c |    2 +-
10 2 files changed, 3 insertions(+), 1 deletions(-)
11
12diff --git a/gdb-6.6/bfd/sysdep.h b/gdb-6.6/bfd/sysdep.h
13index f6313d3905ce5a910dc2f8fb7ba945c450a52b3a..d3a1b0d 100644
14--- a/gdb-6.6/bfd/sysdep.h
15+++ b/gdb-6.6/bfd/sysdep.h
16@@ -131,8 +131,10 @@ extern PTR realloc ();
17 #endif
18
19 #if !HAVE_DECL_STPCPY
20+#if !__APPLE__
21 extern char *stpcpy (char *__dest, const char *__src);
22 #endif
23+#endif
24
25 #if !HAVE_DECL_STRSTR
26 extern char *strstr ();
27diff --git a/gdb-6.6/sim/common/sim-signal.c b/gdb-6.6/sim/common/sim-signal.c
28index 481299ceeb2bda561d53296cce6804eb188c501..b568ca8 100644
29--- a/gdb-6.6/sim/common/sim-signal.c
30+++ b/gdb-6.6/sim/common/sim-signal.c
31@@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
32    to not think the process has died (so it can be debugged at the point of
33    failure).  */
34
35-#ifdef _MSC_VER
36+#ifdef _WIN32
37 #ifndef SIGTRAP
38 #define SIGTRAP 5
39 #endif
40--
411.7.6.rc0
42
43