Since it seems the _POSIX_C_SOURCE "trick" does not work there, the
check does not find poll().
Fixes #15013
Reported-by: vvb2060 on github
Closes #15037
#include <stdlib.h>
int main(void)
{
- #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
+ #if defined(__BIONIC__) || \
+ defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
(void)poll(0, 0, 0);
#else
#error force compilation error
AC_LANG_PROGRAM([[
$curl_includes_stdlib
]],[[
- #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
+ #if defined(__BIONIC__) || \
+ (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L)
return 0;
#else
#error force compilation error