termux-packages/packages/ckermit/ckupty.c.patch

24 lines
383 B
Diff

--- a/ckupty.c
+++ b/ckupty.c
@@ -67,6 +67,10 @@
/* These will no doubt need adjustment... */
+#ifdef __ANDROID__
+#include <pty.h>
+#endif
+
#ifndef NEXT
#define HAVE_SETSID
#endif /* NEXT */
@@ -181,7 +181,9 @@
#endif /* WANT_UTMP */
#ifdef LINUX
+#ifndef __ANDROID__
#define CK_VHANGUP
+#endif
#define HAVE_SYS_SELECT_H
#define HAVE_GETUTENT
#define HAVE_SETUTENT