From 35e3fd6d11a63ddde700d53a8cd510f0a5f4f224 Mon Sep 17 00:00:00 2001 From: wiedi Date: Mon, 24 Feb 2014 13:11:53 +0000 Subject: Link network libs and include filio.h for FIONBIO on SunOS --- net/tn5250/Makefile | 4 +++- net/tn5250/distinfo | 3 ++- net/tn5250/patches/patch-stream5250.cc | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 net/tn5250/patches/patch-stream5250.cc (limited to 'net/tn5250') diff --git a/net/tn5250/Makefile b/net/tn5250/Makefile index a2d2cc5dc75..97a60fd47aa 100644 --- a/net/tn5250/Makefile +++ b/net/tn5250/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2012/10/23 17:19:13 asau Exp $ +# $NetBSD: Makefile,v 1.22 2014/02/24 13:11:53 wiedi Exp $ # DISTNAME= tn5250-0.12.51 @@ -13,5 +13,7 @@ COMMENT= Implementation of the IBM 5250 telnet protocol GNU_CONFIGURE= YES USE_LANGUAGES= c c++ +LDFLAGS.SunOS+= -lsocket -lnsl -lxnet + .include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/net/tn5250/distinfo b/net/tn5250/distinfo index d5ed33dea7a..1217b5985be 100644 --- a/net/tn5250/distinfo +++ b/net/tn5250/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2005/02/24 12:14:05 agc Exp $ +$NetBSD: distinfo,v 1.8 2014/02/24 13:11:53 wiedi Exp $ SHA1 (tn5250-0.12.51.tar.gz) = c4394dd699afa3e38989015100f5837f266a80d9 RMD160 (tn5250-0.12.51.tar.gz) = 382c5988b1ddf6c7cb9345b79e760160c00c64fb @@ -6,3 +6,4 @@ Size (tn5250-0.12.51.tar.gz) = 101747 bytes SHA1 (patch-aa) = eded51dff90cdab29069b281c991e5d53f393c88 SHA1 (patch-ab) = 32a611ae4ac1ad19a4063bebf17959bcfa5f5776 SHA1 (patch-ac) = b2d7ac117722cc225b5d960b966b4a6917b96bed +SHA1 (patch-stream5250.cc) = 122375d21017998f4bcf956bcdffb60df8b93e9a diff --git a/net/tn5250/patches/patch-stream5250.cc b/net/tn5250/patches/patch-stream5250.cc new file mode 100644 index 00000000000..46333621395 --- /dev/null +++ b/net/tn5250/patches/patch-stream5250.cc @@ -0,0 +1,15 @@ +$NetBSD: patch-stream5250.cc,v 1.1 2014/02/24 13:11:53 wiedi Exp $ + +need filio.h for FIONBIO on SunOS +--- stream5250.cc.orig 1999-04-05 16:25:45.000000000 +0000 ++++ stream5250.cc +@@ -27,6 +27,9 @@ + #include + #ifndef WIN32 + #include ++#if defined(__sun) ++#include ++#endif + #include + #include + #include -- cgit v1.2.3