AOSP master has <pty.h> and builds netcat/nc.
This commit is contained in:
parent
3b915991f8
commit
c2415d16a8
@ -206,11 +206,8 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream);
|
||||
#if CFG_TOYBOX_UTMPX
|
||||
#include <utmpx.h>
|
||||
#endif
|
||||
#if CFG_TOYBOX_PTY
|
||||
|
||||
#include <pty.h>
|
||||
#else
|
||||
pid_t forkpty(int *amaster, char *name, void *termp, void *winp);
|
||||
#endif
|
||||
|
||||
|
||||
// Some systems don't define O_NOFOLLOW, and it varies by architecture, so...
|
||||
|
@ -58,14 +58,7 @@ EOF
|
||||
}
|
||||
EOF
|
||||
|
||||
# Android is missing shadow.h and pty.h
|
||||
probesymbol TOYBOX_PTY -c << EOF
|
||||
#include <pty.h>
|
||||
int main(int argc, char *argv[]) {
|
||||
int master; return forkpty(&master, 0, 0, 0);
|
||||
}
|
||||
EOF
|
||||
|
||||
# Android is missing shadow.h
|
||||
probesymbol TOYBOX_SHADOW -c << EOF
|
||||
#include <shadow.h>
|
||||
int main(int argc, char *argv[]) {
|
||||
|
@ -26,7 +26,6 @@ config NETCAT_LISTEN
|
||||
bool "netcat server options (-let)"
|
||||
default y
|
||||
depends on NETCAT
|
||||
depends on TOYBOX_PTY
|
||||
help
|
||||
usage: netcat [-t] [-lL COMMAND...]
|
||||
|
||||
|
@ -8,7 +8,6 @@ USE_TELNETD(NEWTOY(telnetd, "w#<0b:p#<0>65535=23f:l:FSKi[!wi]", TOYFLAG_USR|TOYF
|
||||
config TELNETD
|
||||
bool "telnetd"
|
||||
default n
|
||||
depends on TOYBOX_PTY
|
||||
help
|
||||
Handle incoming telnet connections
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user