diff options
author | seb <seb> | 2004-01-20 17:37:58 +0000 |
---|---|---|
committer | seb <seb> | 2004-01-20 17:37:58 +0000 |
commit | eaaeb572b6a04392b8336b5d745f9d84437314f3 (patch) | |
tree | 937896a3ef40ef1c7a7aea05717f574314835814 /databases/gnats/patches | |
parent | 63c22c1a133b2860e2edcfc0086340c1bef3d39f (diff) | |
download | pkgsrc-eaaeb572b6a04392b8336b5d745f9d84437314f3.tar.gz |
Fix build on NetBSD -current.
Diffstat (limited to 'databases/gnats/patches')
-rw-r--r-- | databases/gnats/patches/patch-ac | 23 | ||||
-rw-r--r-- | databases/gnats/patches/patch-ae | 24 | ||||
-rw-r--r-- | databases/gnats/patches/patch-af | 13 | ||||
-rw-r--r-- | databases/gnats/patches/patch-ag | 17 |
4 files changed, 67 insertions, 10 deletions
diff --git a/databases/gnats/patches/patch-ac b/databases/gnats/patches/patch-ac index c039c32d004..1e975196703 100644 --- a/databases/gnats/patches/patch-ac +++ b/databases/gnats/patches/patch-ac @@ -1,13 +1,16 @@ -$NetBSD: patch-ac,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ +$NetBSD: patch-ac,v 1.2 2004/01/20 17:37:58 seb Exp $ ---- libiberty/strerror.c.orig Thu Jun 28 10:32:06 2001 -+++ libiberty/strerror.c Thu Jun 28 10:34:12 2001 -@@ -7,6 +7,8 @@ +--- libiberty/strerror.c.orig 1998-11-05 19:54:16.000000000 +0000 ++++ libiberty/strerror.c +@@ -462,8 +464,11 @@ static const char **sys_errlist; - #include "config.h" + #else + ++#include <sys/param.h> ++#ifndef __NetBSD__ + extern int sys_nerr; + extern char *sys_errlist[]; ++#endif + + #endif -+#undef NEED_sys_errlist -+ - #ifndef NEED_sys_errlist - /* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least) - might declare sys_errlist in a way that the compiler might consider diff --git a/databases/gnats/patches/patch-ae b/databases/gnats/patches/patch-ae new file mode 100644 index 00000000000..d7758807416 --- /dev/null +++ b/databases/gnats/patches/patch-ae @@ -0,0 +1,24 @@ +$NetBSD: patch-ae,v 1.1 2004/01/20 17:37:58 seb Exp $ + +--- libiberty/functions.def.orig 1998-11-05 19:54:15.000000000 +0000 ++++ libiberty/functions.def +@@ -34,15 +34,15 @@ DEF(strncasecmp, int, (s1, s2, n), char + DEF(strchr, char*, (s, c), CONST char *s AND int c) + DEF(strdup, char*, (s1), char * s1) + DEF(strrchr, char*, (s, c), CONST char *s AND int c) +-DEF(strstr, char*, (), NOTHING) ++DEF(strstr, char*, (s1, s2), CONST char *s1 AND CONST char *s2) + DEF(strtod, double, (), NOTHING) + DEF(strtol, long, (), NOTHING) + DEF(strtoul, unsigned long, (), NOTHING) + DEF(tmpnam, char *, (s), char * s) + DEF(vfork, int, (), NOTHING) +-DEF(vfprintf, int, (), NOTHING) +-DEF(vprintf, int, (), NOTHING) +-DEF(vsprintf, int, (), NOTHING) ++DEF(vfprintf, int, (s, f), PTR s AND CONST char *f) ++DEF(vprintf, int, (f), CONST char *f) ++DEF(vsprintf, int, (s, f), char *s AND CONST char *f) + DEF(sigsetmask, int, (), NOTHING) + DEF(alloca, PTR, (size), size_t size) + DEF(waitpid, int, (pid, statp, opts), int pid AND int* statp AND int opts ) diff --git a/databases/gnats/patches/patch-af b/databases/gnats/patches/patch-af new file mode 100644 index 00000000000..e7a5da41946 --- /dev/null +++ b/databases/gnats/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1 2004/01/20 17:37:58 seb Exp $ + +--- libiberty/Makefile.in.orig 1998-11-05 19:54:14.000000000 +0000 ++++ libiberty/Makefile.in +@@ -236,7 +236,7 @@ needed2.awk: $(srcdir)/functions.def Mak + echo "# !Automatically generated from $(srcdir)/functions.def"\ + "- DO NOT EDIT!" >needed2.awk + grep '^DEFVAR(' < $(srcdir)/functions.def \ +- | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \ ++ | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ \&\& $$0 !~ /warning: reference to compatibility .*; include .* for correct reference/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \ + >>needed2.awk + grep '^DEFFUNC(' < $(srcdir)/functions.def \ + | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \ diff --git a/databases/gnats/patches/patch-ag b/databases/gnats/patches/patch-ag new file mode 100644 index 00000000000..8b6fa463694 --- /dev/null +++ b/databases/gnats/patches/patch-ag @@ -0,0 +1,17 @@ +$NetBSD: patch-ag,v 1.1 2004/01/20 17:37:58 seb Exp $ + +--- libiberty/strsignal.c.orig 1998-11-05 19:54:16.000000000 +0000 ++++ libiberty/strsignal.c +@@ -243,8 +243,12 @@ static const char **sys_siglist; + + #else + ++#include <sys/param.h> ++ ++#ifndef __NetBSD__ + static int sys_nsig = NSIG; + extern const char * const sys_siglist[]; ++#endif + + #endif + |