From 73ee5682ebb4865da9ba397b95bb81cf6ce073a6 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Thu, 13 May 2021 14:30:23 -0400 Subject: remote_cmds: use libiosexec --- remote_cmds/telnet.tproj/Makefile | 2 +- remote_cmds/telnet.tproj/commands.c | 2 ++ remote_cmds/telnetd.tproj/Makefile | 2 +- remote_cmds/telnetd.tproj/sys_term.c | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/remote_cmds/telnet.tproj/Makefile b/remote_cmds/telnet.tproj/Makefile index 929341e..af7c6b1 100644 --- a/remote_cmds/telnet.tproj/Makefile +++ b/remote_cmds/telnet.tproj/Makefile @@ -7,7 +7,7 @@ CFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK \ -DAUTHENTICATION -DSKEY -DIPSEC -DINET6 -DFORWARD \ -I${.CURDIR}/../../lib # -DENCRYPTION -DKRB4 -LDADD=-lncursesw -lipsec +LDADD=-lncursesw -lipsec -liosexec .PATH: ${.CURDIR}/../../lib/libtelnet diff --git a/remote_cmds/telnet.tproj/commands.c b/remote_cmds/telnet.tproj/commands.c index 56a0794..1f4ca53 100644 --- a/remote_cmds/telnet.tproj/commands.c +++ b/remote_cmds/telnet.tproj/commands.c @@ -82,6 +82,8 @@ __FBSDID("$FreeBSD: src/contrib/telnet/telnet/commands.c,v 1.35 2005/02/28 12:46 #include #include +#include + #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif diff --git a/remote_cmds/telnetd.tproj/Makefile b/remote_cmds/telnetd.tproj/Makefile index 56c7640..8060160 100644 --- a/remote_cmds/telnetd.tproj/Makefile +++ b/remote_cmds/telnetd.tproj/Makefile @@ -9,7 +9,7 @@ BINDIR=/usr/libexec CFLAGS+= -DNO_UTMP -DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO \ -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DINET6 \ -I${.CURDIR}/../../lib -LDADD=-lncursesw +LDADD=-lncursesw -liosexec .PATH: ${.CURDIR}/../../lib/libtelnet diff --git a/remote_cmds/telnetd.tproj/sys_term.c b/remote_cmds/telnetd.tproj/sys_term.c index d47d541..84b94ca 100644 --- a/remote_cmds/telnetd.tproj/sys_term.c +++ b/remote_cmds/telnetd.tproj/sys_term.c @@ -58,6 +58,8 @@ __FBSDID("$FreeBSD: src/contrib/telnet/telnetd/sys_term.c,v 1.18 2003/05/04 02:5 #include #endif +#include + int cleanopen(char *); void scrub_env(void); -- cgit v1.2.3-56-ge451