Skip to content

Commit

Permalink
Fix build on SunOS. Patches from Thomas Merkel in TritonDataCenter/pk…
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Feb 18, 2014
1 parent 204f7ae commit 7d5ec7e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions net/httping/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion net/httping/distinfo
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions net/httping/patches/patch-main.c
Original file line number Diff line number Diff line change
@@ -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 <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
+#ifdef __sun
+#include <sys/termios.h>
+#endif
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>

0 comments on commit 7d5ec7e

Please sign in to comment.