summaryrefslogtreecommitdiffstats
path: root/net/ztelnet
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-05-24 21:31:06 +0000
committerflz <flz@FreeBSD.org>2005-05-24 21:31:06 +0000
commit88bc1354a52f68b5ac1f6ad6f8041e87a56e2d5c (patch)
tree2af3ca9406c723901df4cf7eea43c9af38205135 /net/ztelnet
parentd731b02498ffd7e76a986e2d3552e3e7ab5429ff (diff)
downloadFreeBSD-ports-88bc1354a52f68b5ac1f6ad6f8041e87a56e2d5c.zip
FreeBSD-ports-88bc1354a52f68b5ac1f6ad6f8041e87a56e2d5c.tar.gz
- Unbreak on 5.x.
PR: ports/79650 Submitted by: Johan "Unbreaker" van Selst <johans@stack.nl> Approved by: maintainer timeout (18 days)
Diffstat (limited to 'net/ztelnet')
-rw-r--r--net/ztelnet/Makefile5
-rw-r--r--net/ztelnet/files/patch-al7
2 files changed, 5 insertions, 7 deletions
diff --git a/net/ztelnet/Makefile b/net/ztelnet/Makefile
index ebc1820..347f46c 100644
--- a/net/ztelnet/Makefile
+++ b/net/ztelnet/Makefile
@@ -13,6 +13,7 @@
PORTNAME= ztelnet
PORTVERSION= 1.0.p3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/unix-app/net/ztelnet/
DISTFILES= ztelnet-linux.tar.gz ztelnet-patch.tar.gz \
@@ -30,10 +31,6 @@ PLIST_FILES= bin/ztelnet
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502126
-BROKEN= "Install fails on FreeBSD >= 5.x"
-.endif
-
post-patch:
# we can ignore warnings
@( cd ${WRKSRC}/ztelnet && \
diff --git a/net/ztelnet/files/patch-al b/net/ztelnet/files/patch-al
index 2af81d1..29dc4f4 100644
--- a/net/ztelnet/files/patch-al
+++ b/net/ztelnet/files/patch-al
@@ -18,7 +18,7 @@
typedef struct {
char *name; /* command name */
char *help; /* help string (NULL for no help) */
-@@ -93,6 +91,10 @@
+@@ -93,6 +91,12 @@
static int margc;
static char *margv[20];
@@ -26,6 +26,8 @@
+ void send_dont();
+ void send_will();
+ void send_do();
++ typedef int (*intrtn_t)();
++ static call(intrtn_t routine, ...);
static void
makeargv()
{
@@ -148,14 +150,13 @@
static Command cmdtab[] = {
{ "close", closehelp, bye, 1 },
-@@ -2548,18 +2528,14 @@
+@@ -2548,18 +2528,13 @@
*/
/*VARARGS1*/
- static
-call(va_alist)
- va_dcl
-+typedef int (*intrtn_t)();
+static call(intrtn_t routine, ...)
{
va_list ap;
OpenPOWER on IntegriCloud