Commit 08ce4e2
Fix epoll_pwait2 feature detection
The Termux Android build can expose an epoll_pwait2 symbol while omitting the corresponding declaration from <sys/epoll.h>. The previous mkmf probe only checked whether the symbol could be linked, so extconf.rb generated HAVE_EPOLL_PWAIT2 even though epoll.c could not compile a real call to the function under C99 implicit-declaration rules.
Probe epoll_pwait2 using the same header and a concrete call expression instead. This keeps HAVE_EPOLL_PWAIT2 enabled on platforms where the header declares the API, while allowing Android/Termux to fall back to the existing epoll_wait path.
Closes #1551 parent a360692 commit 08ce4e2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments