diff options
author | Sam James <sam@gentoo.org> | 2023-12-02 02:47:04 +0000 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-12-06 17:02:28 +0000 |
commit | 0a24c18d30f42ffc79b6330d47ce6f02027a2471 (patch) | |
tree | fbc9ddc34babe99dfda6756cdca37f7a139494fd | |
parent | 6174b7283295393ea909e07a1cd503cb160567d6 (diff) | |
download | iproute2-0a24c18d30f42ffc79b6330d47ce6f02027a2471.tar.gz |
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 <sam@gentoo.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -445,6 +445,7 @@ EOF check_strlcpy() { cat >$TMPDIR/strtest.c <<EOF +#define _GNU_SOURCE #include <string.h> int main(int argc, char **argv) { char dst[10]; |