aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-10 22:34:40 -0700
committerStephen Hemminger <stephen@networkplumber.org>2022-08-12 08:21:09 -0700
commitd5fe96ab70928508f072a47449e9b641e46de323 (patch)
treec65ed436396d2c7a10d8a720686a5376fd541dd4
parent28c740473510cd911b97cc5d7d23bd809a0f200b (diff)
downloadiproute2-d5fe96ab70928508f072a47449e9b641e46de323.tar.gz
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>
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 440facb7f..c02753bbd 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)
{