diff mbox series

[iproute2] configure: Add _GNU_SOURCE to strlcpy configure test

Message ID 20231202024705.1375296-1-sam@gentoo.org (mailing list archive)
State Accepted
Commit 0a24c18d30f42ffc79b6330d47ce6f02027a2471
Delegated to: David Ahern
Headers show
Series [iproute2] configure: Add _GNU_SOURCE to strlcpy configure test | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Sam James Dec. 2, 2023, 2:47 a.m. UTC
>=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>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 6, 2023, 5:17 p.m. UTC | #1
Hello:

This patch was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:

On Sat,  2 Dec 2023 02:47:04 +0000 you wrote:
> >=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>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)

Here is the summary with links:
  - [iproute2] configure: Add _GNU_SOURCE to strlcpy configure test
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=0a24c18d30f4

You are awesome, thank you!
diff mbox series

Patch

diff --git a/configure b/configure
index eb689341..78bc52c0 100755
--- a/configure
+++ b/configure
@@ -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];