From b046d46da6f85e9407f3d8ff1bf5652db9742ec8 Mon Sep 17 00:00:00 2001 From: jperkin Date: Tue, 18 Feb 2014 12:13:01 +0000 Subject: Fix build on SunOS. Patches from Thomas Merkel in joyent/pkgsrc#175. --- net/httping/Makefile | 4 ++-- net/httping/distinfo | 3 ++- net/httping/patches/patch-main.c | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 net/httping/patches/patch-main.c (limited to 'net/httping') diff --git a/net/httping/Makefile b/net/httping/Makefile index a48c6f8580a..c140e82c4f1 100644 --- a/net/httping/Makefile +++ b/net/httping/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2014/02/12 23:18:20 tron Exp $ +# $NetBSD: Makefile,v 1.20 2014/02/18 12:13:01 jperkin Exp $ DISTNAME= httping-2.3.3 PKGREVISION= 1 @@ -19,7 +19,7 @@ CONFIGURE_ARGS+= --with-openssl .include "../../mk/bsd.prefs.mk" LDFLAGS.NetBSD= -lintl -LDFLAGS.SunOS= -lnsl -lsocket +LDFLAGS.SunOS= -lnsl -lsocket -lresolv -lintl .include "../../devel/gettext-lib/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" diff --git a/net/httping/distinfo b/net/httping/distinfo index ec98ca6650e..c575a5ba7b4 100644 --- a/net/httping/distinfo +++ b/net/httping/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.10 2013/06/26 12:39:24 ryoon Exp $ +$NetBSD: distinfo,v 1.11 2014/02/18 12:13:01 jperkin Exp $ SHA1 (httping-2.3.3.tgz) = 6b9e77039346388e2b02dbb1d60f7422e7133488 RMD160 (httping-2.3.3.tgz) = 204a9ddff58086434c1f5c608a0f5360747fb9bb Size (httping-2.3.3.tgz) = 54376 bytes SHA1 (patch-aa) = 72c327379b1cbe3cae7436e09ccee53f9277652d +SHA1 (patch-main.c) = c28d784334295e3f0e8231d530fa912c11842d52 diff --git a/net/httping/patches/patch-main.c b/net/httping/patches/patch-main.c new file mode 100644 index 00000000000..59968bf28ff --- /dev/null +++ b/net/httping/patches/patch-main.c @@ -0,0 +1,16 @@ +$NetBSD: patch-main.c,v 1.1 2014/02/18 12:13:01 jperkin Exp $ + +SunOS needs sys/termios.h for TIOCOUTQ. + +--- main.c.orig 2013-06-07 13:18:52.000000000 +0000 ++++ main.c +@@ -16,6 +16,9 @@ + #include + #include + #include ++#ifdef __sun ++#include ++#endif + #include + #include + #include -- cgit v1.2.3