screen compiling and working mostly (#608)
[termux-packages] / disabled-packages / screen / misc.c.patch
diff --git a/disabled-packages/screen/misc.c.patch b/disabled-packages/screen/misc.c.patch
new file mode 100644 (file)
index 0000000..8fcff29
--- /dev/null
@@ -0,0 +1,19 @@
+--- ../cache/screen-4.4.0/misc.c       2016-06-19 19:41:03.000000000 +0000
++++ ./misc.c   2016-12-20 03:13:04.387236649 +0000
+@@ -37,7 +37,6 @@
+ #ifdef SVR4
+ # include <sys/resource.h>
+ #endif
+-
+ extern struct layer *flayer;
+ extern int eff_uid, real_uid;
+@@ -379,6 +378,8 @@
+ #endif /* SVR4 */
+ #if defined(SYSV) && defined(NOFILE) && !defined(ISC)
+   f = NOFILE;
++#elif defined(__ANDROID__)
++  f = sysconf(_SC_OPEN_MAX);
+ #else /* SYSV && !ISC */
+   f = getdtablesize();
+ #endif /* SYSV && !ISC */