summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2/iproute2/0001-configure-Define-_GNU_SOURCE-when-checking-for-setns.patch
blob: 04d44ef4442baec70ecc5dd41c6154bd44350e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From dc837a6b4c2cad7f31cddfe56cd652e26baadc02 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 10 Aug 2022 22:31:03 -0700
Subject: [PATCH] configure: Define _GNU_SOURCE when checking for setns

glibc defines this function only as gnu extention

Upstream-Status: Submitted [https://lore.kernel.org/netdev/20220811053440.778649-1-raj.khem@gmail.com/T/#u]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 440facb..c02753b 100755
--- a/configure
+++ b/configure
@@ -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)
 {
-- 
2.37.1