configure: Define _GNU_SOURCE when checking for setns

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>
This commit is contained in:
Khem Raj 2022-08-10 22:34:40 -07:00 committed by Stephen Hemminger
parent 28c7404735
commit d5fe96ab70

1
configure vendored
View File

@ -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)
{