From 0a24c18d30f42ffc79b6330d47ce6f02027a2471 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 2 Dec 2023 02:47:04 +0000 Subject: [PATCH] configure: Add _GNU_SOURCE to strlcpy configure test >=glibc-2.38 adds strlcpy but it's guarded under a feature-test macro. Just add _GNU_SOURCE to the configure test because we already pass _GNU_SOURCE unconditionally in the Makefiles when building iproute2. Signed-off-by: Sam James Signed-off-by: David Ahern --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index eb689341d..78bc52c00 100755 --- a/configure +++ b/configure @@ -445,6 +445,7 @@ EOF check_strlcpy() { cat >$TMPDIR/strtest.c < int main(int argc, char **argv) { char dst[10]; -- 2.47.3