pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/benchmarks/postal Added two patches that comment out t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0f9ea86f617
branches:  trunk
changeset: 490524:f0f9ea86f617
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Mar 14 15:02:14 2005 +0000

description:
Added two patches that comment out the sa_sigaction field of struct
sigaction for NetBSD versions (<2.0) that don't have it. Approved by wiz.

diffstat:

 benchmarks/postal/distinfo         |   4 +++-
 benchmarks/postal/patches/patch-aa |  30 ++++++++++++++++++++++++++++++
 benchmarks/postal/patches/patch-ab |  30 ++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 1 deletions(-)

diffs (80 lines):

diff -r 9476ba5bcc79 -r f0f9ea86f617 benchmarks/postal/distinfo
--- a/benchmarks/postal/distinfo        Mon Mar 14 14:59:36 2005 +0000
+++ b/benchmarks/postal/distinfo        Mon Mar 14 15:02:14 2005 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/22 21:16:36 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/03/14 15:02:14 rillig Exp $
 
 SHA1 (postal-0.62.tgz) = 6379ac223964921963389c8c600a1ba4b24a6ab3
 RMD160 (postal-0.62.tgz) = 694800444ff33c7c64c5b7915ef5438fdb3605f3
 Size (postal-0.62.tgz) = 84506 bytes
+SHA1 (patch-aa) = ec272095d02d2b8cde4e1f798ac8bfb3212d7874
+SHA1 (patch-ab) = 3a14324d2203fc2f6e0e8028f937906c7d95e7e0
diff -r 9476ba5bcc79 -r f0f9ea86f617 benchmarks/postal/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/postal/patches/patch-aa        Mon Mar 14 15:02:14 2005 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1 2005/03/14 15:02:14 rillig Exp $
+
+--- postal.cpp.orig    Tue Jan 14 12:33:27 2003
++++ postal.cpp Sat Mar 12 00:24:43 2005
+@@ -11,6 +11,15 @@
+ #include "postal.h"
+ #include "logit.h"
+ 
++#ifdef __NetBSD__
++# include <sys/param.h>
++# if __NetBSD_Version__ >= 200000000
++#  define HAVE_STRUCT_SIGACTION_SA_SIGACTION
++# endif
++#else
++# define HAVE_STRUCT_SIGACTION_SA_SIGACTION
++#endif
++
+ void usage()
+ {
+   printf("Usage: postal [-m maximum-message-size] [-p processes] [-l local-address]\n"
+@@ -112,7 +121,9 @@ int main(int argc, char **argv)
+   }
+   struct sigaction sa;
+   sa.sa_handler = SIG_IGN;
++#ifdef HAVE_STRUCT_SIGACTION_SA_SIGACTION
+   sa.sa_sigaction = NULL;
++#endif
+   sa.sa_flags = 0;
+   if(sigaction(SIGPIPE, &sa, NULL))
+   {
diff -r 9476ba5bcc79 -r f0f9ea86f617 benchmarks/postal/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/postal/patches/patch-ab        Mon Mar 14 15:02:14 2005 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1 2005/03/14 15:02:14 rillig Exp $
+
+--- rabid.cpp.orig     Tue Jan 14 12:33:02 2003
++++ rabid.cpp  Sat Mar 12 00:25:56 2005
+@@ -11,6 +11,15 @@
+ #include "postal.h"
+ #include "logit.h"
+ 
++#ifdef __NetBSD__
++# include <sys/param.h>
++# if __NetBSD_Version__ >= 200000000
++#  define HAVE_STRUCT_SIGACTION_SA_SIGACTION
++# endif
++#else
++# define HAVE_STRUCT_SIGACTION_SA_SIGACTION
++#endif
++
+ void usage()
+ {
+   printf("Usage: rabid [-r max-connections-per-minute] [-p processes] [-l local-address]\n"
+@@ -112,7 +121,9 @@ int main(int argc, char **argv)
+ 
+   struct sigaction sa;
+   sa.sa_handler = SIG_IGN;
++#ifdef HAVE_STRUCT_SIGACTION_SA_SIGACTION
+   sa.sa_sigaction = NULL;
++#endif
+   sa.sa_flags = 0;
+   if(sigaction(SIGPIPE, &sa, NULL))
+   {



Home | Main Index | Thread Index | Old Index