AOSP master has <pty.h> and builds netcat/nc.
diff --git a/lib/portability.h b/lib/portability.h
index 4097def..9a7b349 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -206,11 +206,8 @@
 #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...