Skip to contentSkip to conversation

configure: Define _GNU_SOURCE when checking for setns

PATCH Applied Khem Raj 2 participants 2 messages Aug 11, 2022 – Aug 12, 2022

Subsystems (2)
lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 configure: Define _GNU_SOURCE when checking for setns

glibc defines this function only as gnu extention

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 440facb..c02753b 100755
@@ -191,6 +191,7 @@ check_ipt_lib_dir()
 check_setns()
 {
     cat >$TMPDIR/setnstest.c <<EOF
+#define _GNU_SOURCE
 #include <sched.h>
 int main(int argc, char **argv)
 {
Signature · 1 line
2.37.1
#1 lore raw
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 6 lines · On Wed, 10 Aug 2022 22:34:40 -0700 you wrote:

glibc defines this function only as gnu extention

---
 configure | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- configure: Define _GNU_SOURCE when checking for setns

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=d5fe96ab7092

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html