From 91900c0adb92ec5329c948c0bc456c612266a332 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 22 Sep 2003 12:30:24 +0000 Subject: Fix build on Solaris, based on PR 22889 by Jonathan Perkin. --- misc/cstream/Makefile | 8 +++++++- misc/cstream/distinfo | 3 ++- misc/cstream/patches/patch-aa | 16 ++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 misc/cstream/patches/patch-aa (limited to 'misc/cstream') diff --git a/misc/cstream/Makefile b/misc/cstream/Makefile index dab93b33b04..b1a3a8dbc1d 100644 --- a/misc/cstream/Makefile +++ b/misc/cstream/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2003/07/17 21:48:51 grant Exp $ +# $NetBSD: Makefile,v 1.4 2003/09/22 12:30:24 wiz Exp $ DISTNAME= cstream-2.2 CATEGORIES= misc @@ -10,4 +10,10 @@ COMMENT= General-purpose stream-handling tool with bandwidth limiting GNU_CONFIGURE= yes +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +LDFLAGS+= -lsocket -lnsl -lresolv +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/misc/cstream/distinfo b/misc/cstream/distinfo index 7fa9313f442..9a23c1f3fd7 100644 --- a/misc/cstream/distinfo +++ b/misc/cstream/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/09/19 05:24:27 gmcgarry Exp $ +$NetBSD: distinfo,v 1.2 2003/09/22 12:30:24 wiz Exp $ SHA1 (cstream-2.2.tar.gz) = aef89176123f1ae6cb824e66b2e9b3aa3be7644e Size (cstream-2.2.tar.gz) = 43124 bytes +SHA1 (patch-aa) = 68f73e1052731342f59cbd3baaf772d45e62cacd diff --git a/misc/cstream/patches/patch-aa b/misc/cstream/patches/patch-aa new file mode 100644 index 00000000000..5a6ddcc73c7 --- /dev/null +++ b/misc/cstream/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1 2003/09/22 12:30:24 wiz Exp $ + +--- cstream.c.orig Wed Jul 11 17:13:05 2001 ++++ cstream.c +@@ -93,6 +93,11 @@ + #include + #include + ++/* Solaris needs this */ ++#ifndef INADDR_NONE ++#define INADDR_NONE 0xffffffff ++#endif ++ + #ifndef NORESOLV + #include + #endif -- cgit v1.2.3