]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
remote_cmds: use libiosexec
authorCameron Katri <me@cameronkatri.com>
Thu, 13 May 2021 18:30:23 +0000 (14:30 -0400)
committerCameron Katri <me@cameronkatri.com>
Thu, 13 May 2021 19:16:03 +0000 (15:16 -0400)
remote_cmds/telnet.tproj/Makefile
remote_cmds/telnet.tproj/commands.c
remote_cmds/telnetd.tproj/Makefile
remote_cmds/telnetd.tproj/sys_term.c

index 929341eb740f1fa666c1071eb76610474377cd22..af7c6b1fde37ae65f4fab3e515592d8942b89442 100644 (file)
@@ -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
 
index 56a07948635e18be9029a04eb8780c98acb44f31..1f4ca5328e4f049e3c9ec938f63a7d4c3a6a553d 100644 (file)
@@ -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
index 56c76406a58f3d92690308b0cde0564aaf0e7b26..8060160769b09fdec0413afc016b89fec523f84f 100644 (file)
@@ -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
 
index d47d541297f1b29fdd33273de74057d39eb7a1b8..84b94ca922df32122193a95efaed278dbc83a470 100644 (file)
@@ -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);