summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-06-12 10:20:08 -0400
committerRick Farina <zerochaos@gentoo.org>2020-06-12 10:20:50 -0400
commit0d91ca6832027ca0f8271b57509e331402e8649d (patch)
tree99c851af6a7ad984ff8f8acbbb46d9004280759d /net-wireless/ubertooth/files
parentdev-python/ujson: Port to py3.9, fix tests (diff)
downloadgentoo-0d91ca6832027ca0f8271b57509e331402e8649d.tar.gz
gentoo-0d91ca6832027ca0f8271b57509e331402e8649d.tar.bz2
gentoo-0d91ca6832027ca0f8271b57509e331402e8649d.zip
net-wireless/ubertooth: fix bug #706598
thanks to Jonas Stein https://github.com/greatscottgadgets/ubertooth/issues/408 https://github.com/greatscottgadgets/ubertooth/pull/409 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/ubertooth/files')
-rw-r--r--net-wireless/ubertooth/files/ubertooth-2018.12.1-gcc-10.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-wireless/ubertooth/files/ubertooth-2018.12.1-gcc-10.patch b/net-wireless/ubertooth/files/ubertooth-2018.12.1-gcc-10.patch
new file mode 100644
index 000000000000..b4f25e6b0b8c
--- /dev/null
+++ b/net-wireless/ubertooth/files/ubertooth-2018.12.1-gcc-10.patch
@@ -0,0 +1,23 @@
+From abc1d87631c71fb5bf3be4b81327c66292d852ca Mon Sep 17 00:00:00 2001
+From: Jonas Stein <news@jonasstein.de>
+Date: Sat, 6 Jun 2020 21:11:38 +0200
+Subject: [PATCH] extern packet_counter_max to compile with gcc-10
+
+Fixes: https://github.com/greatscottgadgets/ubertooth/issues/408
+---
+ host/libubertooth/src/ubertooth_callback.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libubertooth/src/ubertooth_callback.c b/libubertooth/src/ubertooth_callback.c
+index a36e3512..adb9934f 100644
+--- a/libubertooth/src/ubertooth_callback.c
++++ b/libubertooth/src/ubertooth_callback.c
+@@ -27,7 +27,7 @@
+
+ #include "ubertooth_callback.h"
+
+-unsigned int packet_counter_max;
++extern unsigned int packet_counter_max;
+
+ static int8_t cc2400_rssi_to_dbm( const int8_t rssi )
+ {