* [iproute2 PATCH] configure: Add _GNU_SOURCE to strlcpy configure test
@ 2023-12-02 2:47 Sam James
2023-12-06 17:17 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Sam James @ 2023-12-02 2:47 UTC (permalink / raw)
To: netdev; +Cc: Sam James
>=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(+)
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];
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [iproute2 PATCH] configure: Add _GNU_SOURCE to strlcpy configure test
2023-12-02 2:47 [iproute2 PATCH] configure: Add _GNU_SOURCE to strlcpy configure test Sam James
@ 2023-12-06 17:17 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-12-06 17:17 UTC (permalink / raw)
To: Sam James; +Cc: netdev
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-06 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-02 2:47 [iproute2 PATCH] configure: Add _GNU_SOURCE to strlcpy configure test Sam James
2023-12-06 17:17 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).