summaryrefslogtreecommitdiff
path: root/benchmarks/nttcp/patches
diff options
context:
space:
mode:
authordanw <danw@pkgsrc.org>2004-05-05 00:46:45 +0000
committerdanw <danw@pkgsrc.org>2004-05-05 00:46:45 +0000
commitbb817754d5b63d5bbabebc9f130cd4848f6871d5 (patch)
treefeba5e8f6e29c803e3d28e18ff6aa6d47a4cb8fb /benchmarks/nttcp/patches
parentaaa03e7f8444b664b6e0528add3165e8fc0a7170 (diff)
downloadpkgsrc-bb817754d5b63d5bbabebc9f130cd4848f6871d5.tar.gz
make this build on Darwin
Diffstat (limited to 'benchmarks/nttcp/patches')
-rw-r--r--benchmarks/nttcp/patches/patch-ab4
-rw-r--r--benchmarks/nttcp/patches/patch-ac16
2 files changed, 18 insertions, 2 deletions
diff --git a/benchmarks/nttcp/patches/patch-ab b/benchmarks/nttcp/patches/patch-ab
index 42f9100563c..148ef585d7e 100644
--- a/benchmarks/nttcp/patches/patch-ab
+++ b/benchmarks/nttcp/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1 2002/08/21 06:36:35 simonb Exp $
+$NetBSD: patch-ab,v 1.2 2004/05/05 00:46:45 danw Exp $
--- nttcp.c.orig Mon Dec 18 21:16:54 2000
+++ nttcp.c
@@ -7,7 +7,7 @@ $NetBSD: patch-ab,v 1.1 2002/08/21 06:36:35 simonb Exp $
/*====================================================================*/
-#if defined(FreeBSD)
-+#if defined(FreeBSD) || defined(__NetBSD__)
++#ifndef SIGCLD
#define SIGCLD SIGCHLD
#endif /*FreeBSD*/
diff --git a/benchmarks/nttcp/patches/patch-ac b/benchmarks/nttcp/patches/patch-ac
new file mode 100644
index 00000000000..98e2a7d48ee
--- /dev/null
+++ b/benchmarks/nttcp/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1 2004/05/05 00:46:45 danw Exp $
+
+--- support.c.orig Sun May 2 21:35:48 2004
++++ support.c
+@@ -18,11 +18,7 @@
+ * bartel@informatik.tu-muenchen.de
+ */
+ #include <string.h>
+-#if defined(FreeBSD)
+ #include <stdlib.h>
+-#else
+-#include <malloc.h>
+-#endif /*FreeBSD*/
+ #include "support.h"
+
+ /* Pad the string to size from right with character pad.