summaryrefslogtreecommitdiff
path: root/lang/m3gdb
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-21 00:30:45 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-21 00:30:45 +0000
commitaf1b2a97defce250a63f5f65e2ebc247c64744d0 (patch)
tree4bd87cf3641ac329872009d7929e18887e581c32 /lang/m3gdb
parentAdd Alfred Perlstein's sendfile patches, as an optional knob. (diff)
Partially fix build on -current (remove duplicate declarations from
system headers). This is still broken by KSE changes.
Notes
Notes: svn path=/head/; revision=68453
Diffstat (limited to 'lang/m3gdb')
-rw-r--r--lang/m3gdb/files/patch-ag28
-rw-r--r--lang/m3gdb/files/patch-ah14
2 files changed, 42 insertions, 0 deletions
diff --git a/lang/m3gdb/files/patch-ag b/lang/m3gdb/files/patch-ag
new file mode 100644
index 000000000000..c7defcd1f52a
--- /dev/null
+++ b/lang/m3gdb/files/patch-ag
@@ -0,0 +1,28 @@
+--- src/contrib/binutils/libiberty/strsignal.c.orig Sun Oct 20 17:28:15 2002
++++ src/contrib/binutils/libiberty/strsignal.c Sun Oct 20 17:29:24 2002
+@@ -16,7 +16,9 @@
+ we could work out the right declaration. Until, then we just
+ ignore any declaration in the system header files, and always
+ declare it ourselves. With luck, this will always work. */
++#ifndef __FreeBSD__
+ #define sys_siglist no_such_symbol
++#endif
+
+ #include <stdio.h>
+ #include <signal.h>
+@@ -243,6 +245,7 @@
+
+ #else
+
++#ifndef __FreeBSD__
+ #ifdef NSIG
+ static int sys_nsig = NSIG;
+ #else
+@@ -251,6 +254,7 @@
+ #endif
+ #endif
+ extern const char * const sys_siglist[];
++#endif
+
+ #endif
+
diff --git a/lang/m3gdb/files/patch-ah b/lang/m3gdb/files/patch-ah
new file mode 100644
index 000000000000..ff9fa1230a9f
--- /dev/null
+++ b/lang/m3gdb/files/patch-ah
@@ -0,0 +1,14 @@
+--- src/contrib/binutils/libiberty/strerror.c.orig Sun Oct 20 17:27:09 2002
++++ src/contrib/binutils/libiberty/strerror.c Sun Oct 20 17:27:31 2002
+@@ -461,9 +461,10 @@
+ static const char **sys_errlist;
+
+ #else
+-
++#if !defined(__FreeBSD__)
+ extern int sys_nerr;
+ extern char *sys_errlist[];
++#endif
+
+ #endif
+