summaryrefslogtreecommitdiff
path: root/net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-21 17:50:24 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-21 17:50:24 +0100
commitfeb0daf81d888e9160f9f94502de09b66f2a63fd (patch)
treeb6e5c40ce2abef3da27ed50a023153f475e0ddef /net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch
parent9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff)
gentoo resync : 21.06.2020
Diffstat (limited to 'net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch')
-rw-r--r--net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch b/net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch
new file mode 100644
index 000000000000..4639fa7406f1
--- /dev/null
+++ b/net-misc/ipv6calc/files/ipv6calc-2.2.0-gcc-10.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/708056
+
+From 8c7eea58f2034113ae91ff7adc2bda72465b7d1a Mon Sep 17 00:00:00 2001
+From: Peter Bieringer <pb@bieringer.de>
+Date: Fri, 24 Jan 2020 07:15:55 +0100
+Subject: [PATCH] ipv6logconv/ipv6logconv.{h,c}: fix multiple definition of
+ 'cache_lru_limit'
+
+--- a/ipv6logconv/ipv6logconv.c
++++ b/ipv6logconv/ipv6logconv.c
+@@ -58,7 +58,7 @@ static void lineparser(const long int outputtype);
+ /* LRU cache */
+
+ #define CACHE_LRU_SIZE 200
+-
++int cache_lru_limit;
+ static int cache_lru_max = 0;
+ static int cache_lru_last = 0;
+ static char cache_lru_key_token[CACHE_LRU_SIZE][NI_MAXHOST];
+--- a/ipv6logconv/ipv6logconv.h
++++ b/ipv6logconv/ipv6logconv.h
+@@ -20,8 +20,7 @@
+ #define DEBUG_ipv6logconv_general 0x00000001l
+ #define DEBUG_ipv6logconv_processing 0x00000002l
+
+-/* prototyping */
+-int cache_lru_limit;
++extern int cache_lru_limit;
+
+ extern int feature_reg;
+ extern int feature_ieee;
+--
+2.27.0
+