diff options
author | Luca Boccassi <bluca@debian.org> | 2018-10-31 18:00:11 +0000 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2018-11-01 12:47:03 -0700 |
commit | 508f3c231efb179fb842d222e8151b395937b136 (patch) | |
tree | e82c7ea91c486ae6c0af618f3c76a069915761b7 /ip/ipxfrm.c | |
parent | 7a04dd84a7f938f72fcef9efe8383314b0a66274 (diff) |
Use libbsd for strlcpy if available
If libc does not provide strlcpy check for libbsd with pkg-config to
avoid relying on inline version.
Signed-off-by: Luca Boccassi <bluca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'ip/ipxfrm.c')
-rw-r--r-- | ip/ipxfrm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c index 17ab4abe..b02f30a6 100644 --- a/ip/ipxfrm.c +++ b/ip/ipxfrm.c @@ -28,6 +28,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifdef HAVE_LIBBSD +#include <bsd/string.h> +#endif #include <sys/types.h> #include <sys/socket.h> #include <time.h> |