Re: [PATCH v3] lib: fix multiple strlcpy definition

2017-10-11 Thread Stephen Hemminger
On Mon, 9 Oct 2017 08:49:44 +0300 Baruch Siach wrote: > Some C libraries, like uClibc and musl, provide BSD compatible > strlcpy(). Add check_strlcpy() to configure, and avoid defining strlcpy > and strlcat when the C library provides them. > > This fixes the following static link error with uC

[PATCH v3] lib: fix multiple strlcpy definition

2017-10-08 Thread Baruch Siach
Some C libraries, like uClibc and musl, provide BSD compatible strlcpy(). Add check_strlcpy() to configure, and avoid defining strlcpy and strlcat when the C library provides them. This fixes the following static link error with uClibc-ng: .../sysroot/usr/lib/libc.a(strlcpy.os): In function `strl