aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-13 14:30:23 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-13 15:16:03 -0400
commit73ee5682ebb4865da9ba397b95bb81cf6ce073a6 (patch)
tree6e54e0cec0c8031d8a999cf1be5b608aa565f62f
parent5fc4320ea24afec67d4e6d4032cc8ecb7857678b (diff)
downloadapple_cmds-73ee5682ebb4865da9ba397b95bb81cf6ce073a6.tar.gz
apple_cmds-73ee5682ebb4865da9ba397b95bb81cf6ce073a6.tar.zst
apple_cmds-73ee5682ebb4865da9ba397b95bb81cf6ce073a6.zip
remote_cmds: use libiosexec
-rw-r--r--remote_cmds/telnet.tproj/Makefile2
-rw-r--r--remote_cmds/telnet.tproj/commands.c2
-rw-r--r--remote_cmds/telnetd.tproj/Makefile2
-rw-r--r--remote_cmds/telnetd.tproj/sys_term.c2
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 <netinet/ip.h>
#include <netinet/ip6.h>
+#include <libiosexec.h>
+
#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 <libtelnet/auth.h>
#endif
+#include <libiosexec.h>
+
int cleanopen(char *);
void scrub_env(void);