diff options
author | kris <kris@FreeBSD.org> | 2002-10-21 08:30:45 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-10-21 08:30:45 +0800 |
commit | 58f3137bb24dd5d1ffbb774dc7c28912f1229277 (patch) | |
tree | c73bb212a23dcf513b976bc22b79ef3add0b601c /lang | |
parent | 4caab5f8ae09c2bd749190e828634fcd0464d07e (diff) | |
download | freebsd-ports-gnome-58f3137bb24dd5d1ffbb774dc7c28912f1229277.tar.gz freebsd-ports-gnome-58f3137bb24dd5d1ffbb774dc7c28912f1229277.tar.zst freebsd-ports-gnome-58f3137bb24dd5d1ffbb774dc7c28912f1229277.zip |
Partially fix build on -current (remove duplicate declarations from
system headers). This is still broken by KSE changes.
Diffstat (limited to 'lang')
-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 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 + |