| 1 | --- ../cache/screen-4.4.0/misc.c 2016-06-19 19:41:03.000000000 +0000 |
| 2 | +++ ./misc.c 2016-12-20 03:13:04.387236649 +0000 |
| 3 | @@ -37,7 +37,6 @@ |
| 4 | #ifdef SVR4 |
| 5 | # include <sys/resource.h> |
| 6 | #endif |
| 7 | - |
| 8 | extern struct layer *flayer; |
| 9 | |
| 10 | extern int eff_uid, real_uid; |
| 11 | @@ -379,6 +378,8 @@ |
| 12 | #endif /* SVR4 */ |
| 13 | #if defined(SYSV) && defined(NOFILE) && !defined(ISC) |
| 14 | f = NOFILE; |
| 15 | +#elif defined(__ANDROID__) |
| 16 | + f = sysconf(_SC_OPEN_MAX); |
| 17 | #else /* SYSV && !ISC */ |
| 18 | f = getdtablesize(); |
| 19 | #endif /* SYSV && !ISC */ |