On Sun, 3 Jan 2016 22:22:19 +0300 Andrey Korolyov andrey@xdel.ru wrote:
Adding generic check against the function in addition to check for a problematic compiler.
Hi Andrey,
thanks for the patch. Did you notice any breakage in the wild? I hesitate to include your change because that could actually break some configurations: in case HAVE_STRNLEN is not defined but strnlen is provided nonetheless linking would fail. Actually I'd be surprised if it would not make problems with other libc implementations.