diff options
author | kris <kris@FreeBSD.org> | 2002-10-21 00:30:45 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-10-21 00:30:45 +0000 |
commit | 58f3137bb24dd5d1ffbb774dc7c28912f1229277 (patch) | |
tree | c73bb212a23dcf513b976bc22b79ef3add0b601c | |
parent | 4caab5f8ae09c2bd749190e828634fcd0464d07e (diff) | |
download | FreeBSD-ports-58f3137bb24dd5d1ffbb774dc7c28912f1229277.zip FreeBSD-ports-58f3137bb24dd5d1ffbb774dc7c28912f1229277.tar.gz |
Partially fix build on -current (remove duplicate declarations from
system headers). This is still broken by KSE changes.
-rw-r--r-- | lang/m3gdb/files/patch-ag | 28 | ||||
-rw-r--r-- | lang/m3gdb/files/patch-ah | 14 |
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 0000000..c7defcd --- /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 0000000..ff9fa12 --- /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 + |