Commit | Line | Data |
---|---|---|
333bd586 FF |
1 | Fixes compilation on 64-bit Android which has removed getdtablesize. |
2 | diff -u -r ../m4-1.4.17/lib/spawn_faction_addclose.c ./lib/spawn_faction_addclose.c | |
3 | --- ../m4-1.4.17/lib/spawn_faction_addclose.c 2013-09-22 02:15:20.000000000 -0400 | |
4 | +++ ./lib/spawn_faction_addclose.c 2016-01-03 20:37:44.870178045 -0500 | |
5 | @@ -37,7 +37,7 @@ | |
6 | int fd) | |
7 | #undef posix_spawn_file_actions_addclose | |
8 | { | |
9 | - int maxfd = __sysconf (_SC_OPEN_MAX); | |
10 | + int maxfd = sysconf (_SC_OPEN_MAX); | |
11 | ||
12 | /* Test for the validity of the file descriptor. */ | |
13 | if (fd < 0 || fd >= maxfd) | |
14 | diff -u -r ../m4-1.4.17/lib/spawn_faction_adddup2.c ./lib/spawn_faction_adddup2.c | |
15 | --- ../m4-1.4.17/lib/spawn_faction_adddup2.c 2013-09-22 02:15:20.000000000 -0400 | |
16 | +++ ./lib/spawn_faction_adddup2.c 2016-01-03 20:38:11.981753903 -0500 | |
17 | @@ -37,7 +37,7 @@ | |
18 | int fd, int newfd) | |
19 | #undef posix_spawn_file_actions_adddup2 | |
20 | { | |
21 | - int maxfd = __sysconf (_SC_OPEN_MAX); | |
22 | + int maxfd = sysconf (_SC_OPEN_MAX); | |
23 | ||
24 | /* Test for the validity of the file descriptor. */ | |
25 | if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) | |
26 | diff -u -r ../m4-1.4.17/lib/spawn_faction_addopen.c ./lib/spawn_faction_addopen.c | |
27 | --- ../m4-1.4.17/lib/spawn_faction_addopen.c 2013-09-22 02:15:20.000000000 -0400 | |
28 | +++ ./lib/spawn_faction_addopen.c 2016-01-03 20:38:21.341607440 -0500 | |
29 | @@ -38,7 +38,7 @@ | |
30 | mode_t mode) | |
31 | #undef posix_spawn_file_actions_addopen | |
32 | { | |
33 | - int maxfd = __sysconf (_SC_OPEN_MAX); | |
34 | + int maxfd = sysconf (_SC_OPEN_MAX); | |
35 | ||
36 | /* Test for the validity of the file descriptor. */ | |
37 | if (fd < 0 || fd >= maxfd) |