summaryrefslogtreecommitdiff
path: root/misc/ss.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2020-01-08 11:04:24 +0100
committerStephen Hemminger <stephen@networkplumber.org>2020-01-20 09:40:59 -0800
commit31f45088c9c891542e38144d0a1bba124934693c (patch)
tree9b3fb012ad157bddca10b28f321827182b139499 /misc/ss.c
parentf4d7ce9bfae9710fcb984f72d1119d8bf4ff2f8c (diff)
downloadiproute2-31f45088c9c891542e38144d0a1bba124934693c.tar.gz
build: fix build failure with -fno-common
$ make CCOPTS=-fno-common gcc ... -o ip ld: rt_names.o (symbol from plugin): in function "rtnl_rtprot_n2a": (.text+0x0): multiple definition of "numeric"; ip.o (symbol from plugin):(.text+0x0): first defined here gcc ... -o tipc ld: ../lib/libutil.a(utils.o):(.bss+0xc): multiple definition of `pretty'; tipc.o:tipc.c:28: first defined here References: https://bugzilla.opensuse.org/1160244 Signed-off-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'misc/ss.c')
-rw-r--r--misc/ss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ss.c b/misc/ss.c
index 95f1d37a..1e8bca5a 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -35,6 +35,7 @@
#include "libnetlink.h"
#include "namespace.h"
#include "SNAPSHOT.h"
+#include "rt_names.h"
#include <linux/tcp.h>
#include <linux/sock_diag.h>
@@ -121,7 +122,6 @@ static int follow_events;
static int sctp_ino;
static int show_tipcinfo;
static int show_tos;
-int numeric;
int oneline;
enum col_id {