Paul Eggert <[email protected]> writes:
> Please feel free to write that. It's not something that would be easy
> for me to do, as I don't know Android. Also, I don't know that it'd be
> that trivial, as it might involve replacing the AC_FUNC_STRNLEN macro
> of Autoconf (and we should propagate that fix into Autoconf as well),
> but I could give advice about the non-Android part of any fix.
How many lines remain of my 15-line quota of contributions to Gnulib?
The test itself is facile:
#if defined __ANDROID_API__ && (__ANDROID_API__ < 21)
you lose
#endif /* defined __ANDROID_API__ && (__ANDROID_API__ < 21) */
and, when not cross-compiling,
verify (strnlen ("", SIZE_MAX) == 0);
but the supporting code might exceed whatever is left of this quota.