You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
455 B

diff -uNr screen-4.8.0/misc.c screen-4.8.0.mod/misc.c
--- screen-4.8.0/misc.c 2020-02-05 22:09:38.000000000 +0200
+++ screen-4.8.0.mod/misc.c 2020-02-10 14:15:45.256423801 +0200
@@ -389,8 +389,11 @@
int maxfd, i, ret, z;
i = 3; /* skip stdin, stdout and stderr */
+#if defined(__ANDROID__)
+ maxfd = sysconf(_SC_OPEN_MAX);
+#else
maxfd = getdtablesize();
-
+#endif
while (i < maxfd)
{
memset(pfd, 0, sizeof(pfd));