This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Improve detection of memrchr, strlcat, and strlcpy.
authorAndy Dougherty <doughera@lafayette.edu>
Thu, 31 Jan 2019 18:04:32 +0000 (13:04 -0500)
committerAndy Dougherty <doughera@lafayette.edu>
Thu, 31 Jan 2019 18:04:32 +0000 (13:04 -0500)
commitba73a4cb8f472480a2d630613d1e9e1172d518d3
tree49357f70d89d6c699684b398caff75bf463eadbc
parentbbe6f202f7bf0108cfc3bc44dbab7be65c113ce2
Improve detection of memrchr, strlcat, and strlcpy.

This is continuation of commit f8d82a1010 addressing [perl #133760].
Linux systems using the musl C library have memmem, memrchr, strlcat, and
strlcpy, but the prototypes are only visible if _GNU_SOURCE is defined.
This patch makes Configure test both whether the prototype is visible
and whether the C symbol is visible.

Still to be done is automatically adding _GNU_SOURCE if the musl library
is being used -- probably in hints/linux.sh.
Configure