diff options
author | minskim <minskim> | 2004-06-16 16:09:39 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-06-16 16:09:39 +0000 |
commit | f9938ec62a8083643b192787937f3dce1dac0cc1 (patch) | |
tree | 246b7060cfa25cadd459756a9c98917b7c89a263 | |
parent | 6c4d1fb8e802c506c8bd26072e727c66ee322220 (diff) | |
download | pkgsrc-f9938ec62a8083643b192787937f3dce1dac0cc1.tar.gz |
Make this package build on Linux.
- Use promoted types for va_arg(3).
-rw-r--r-- | chat/bnc/distinfo | 3 | ||||
-rw-r--r-- | chat/bnc/patches/patch-ab | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/chat/bnc/distinfo b/chat/bnc/distinfo index effd3273437..4b52121a960 100644 --- a/chat/bnc/distinfo +++ b/chat/bnc/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2004/02/02 09:05:20 grant Exp $ +$NetBSD: distinfo,v 1.5 2004/06/16 16:09:39 minskim Exp $ SHA1 (bnc2.8.6.tar.gz) = 19544b83c4e8d558d56621b5001590432de2b4d0 Size (bnc2.8.6.tar.gz) = 52569 bytes SHA1 (patch-aa) = 089c7ee2523d55404c68ca7ad6f551f6e69f1392 +SHA1 (patch-ab) = 74554135c60b7c18c467e674e1e22778b1fa3b95 diff --git a/chat/bnc/patches/patch-ab b/chat/bnc/patches/patch-ab new file mode 100644 index 00000000000..ee2f5cd9791 --- /dev/null +++ b/chat/bnc/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2004/06/16 16:09:39 minskim Exp $ + +--- send.c.orig 2002-07-11 10:58:54.000000000 -0500 ++++ send.c +@@ -175,7 +175,7 @@ reschar: + sign = '\0'; + src = buf; + eos = src + 1; +- *src = va_arg(ap, char); ++ *src = va_arg(ap, int); + goto writeout; + case 's': + src = va_arg(ap, char *); +@@ -211,7 +211,7 @@ reschar: + goto nosign; + nosign: + ulval = flags & flaglongint ? va_arg(ap, long) +- : flags & flagshortint ? (long)(short)va_arg(ap,short) ++ : flags & flagshortint ? (long)(short)va_arg(ap,int) + : (long)va_arg(ap,int) ; + + goto number; +@@ -225,7 +225,7 @@ nosign: + case 'd': + case 'i': + ulval = flags & flaglongint ? va_arg(ap, long) +- : flags & flagshortint ? (long)(short)va_arg(ap,short) ++ : flags & flagshortint ? (long)(short)va_arg(ap,int) + : (long)va_arg(ap,int) ; + + if((long)ulval < 0) |