]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
configure: Define _GNU_SOURCE when checking for setns
authorKhem Raj <raj.khem@gmail.com>
Thu, 11 Aug 2022 05:34:40 +0000 (22:34 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 12 Aug 2022 15:21:09 +0000 (08:21 -0700)
glibc defines this function only as gnu extention

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
configure

index 440facb7f22774a587706c2ff7903e5565a76267..c02753bbdf0cb9fab402fecb2e507e983994b64a 100755 (executable)
--- 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)
 {