summaryrefslogtreecommitdiff
path: root/genl
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-10-31 18:00:11 +0000
committerStephen Hemminger <stephen@networkplumber.org>2018-11-01 12:47:03 -0700
commit508f3c231efb179fb842d222e8151b395937b136 (patch)
treee82c7ea91c486ae6c0af618f3c76a069915761b7 /genl
parent7a04dd84a7f938f72fcef9efe8383314b0a66274 (diff)
downloadiproute2-508f3c231efb179fb842d222e8151b395937b136.tar.gz
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 'genl')
-rw-r--r--genl/ctrl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/genl/ctrl.c b/genl/ctrl.c
index 6133336a..fef6aaa9 100644
--- a/genl/ctrl.c
+++ b/genl/ctrl.c
@@ -18,6 +18,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
+#ifdef HAVE_LIBBSD
+#include <bsd/string.h>
+#endif
#include "utils.h"
#include "genl_utils.h"