summaryrefslogtreecommitdiff
path: root/benchmarks/postal/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/postal/patches/patch-ab')
-rw-r--r--benchmarks/postal/patches/patch-ab30
1 files changed, 30 insertions, 0 deletions
diff --git a/benchmarks/postal/patches/patch-ab b/benchmarks/postal/patches/patch-ab
new file mode 100644
index 00000000000..8f13b179fc3
--- /dev/null
+++ b/benchmarks/postal/patches/patch-ab
@@ -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))
+ {