aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@kernel.org>2022-08-14 11:31:10 -0600
committerDavid Ahern <dsahern@kernel.org>2022-08-14 11:31:10 -0600
commitd9305ec5a81ebc0b092d6d985b3869a443a0d03d (patch)
treec65ed436396d2c7a10d8a720686a5376fd541dd4
parentd937cb2b0c3ab863c991bf831821b15d12764675 (diff)
parentd5fe96ab70928508f072a47449e9b641e46de323 (diff)
downloadiproute2-d9305ec5a81ebc0b092d6d985b3869a443a0d03d.tar.gz
Merge branch 'main' into next
Signed-off-by: David Ahern <dsahern@kernel.org>
-rwxr-xr-xconfigure1
-rw-r--r--ip/ipstats.c5
2 files changed, 6 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)
{
diff --git a/ip/ipstats.c b/ip/ipstats.c
index 5cdd15ae0..dadded14c 100644
--- a/ip/ipstats.c
+++ b/ip/ipstats.c
@@ -1,6 +1,11 @@
// SPDX-License-Identifier: GPL-2.0+
+#include <alloca.h>
#include <assert.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/param.h>
+#include <sys/socket.h>
#include "list.h"
#include "utils.h"