Use -lbsd for strlcat/strlcpy, if needed and available
commit8ca05fd4bec46610c67c0ac88b60eba6d50460c2
authorBrad Jorsch <anomie@users.sourceforge.net>
Fri, 24 Sep 2010 18:37:57 +0000 (24 14:37 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 7 Oct 2010 10:04:29 +0000 (7 12:04 +0200)
tree3ab601ba66fcea1d4b7382719a82f89ea795d381
parentf206c15fea5bcbde9aabc430d539d1286afffe94
Use -lbsd for strlcat/strlcpy, if needed and available

On BSD systems, strlcat and strlcpy are included in the C library and
nothing special is needed. On Linux systems they are not, but libbsd may
be available to provide them. Use it if so.

This also adds wstrlcat and wstrlcpy instead of trying to maybe-provide
strlcat and strlcpy themselves, as that way there is no risk of symbol
conflicts. Not bumping the library version at this time, that should be
done (if necessary) before release.

Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
WINGs/Makefile.am
WINGs/WINGs/WUtil.h
WINGs/string.c
configure.ac