--- /dev/null
+diff -ur gateway-1.4.5/gw/wap_push_ota.c gateway-1.4.5-gcc10/gw/wap_push_ota.c
+--- gateway-1.4.5/gw/wap_push_ota.c 2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5-gcc10/gw/wap_push_ota.c 2021-10-17 22:08:54.582360839 +0200
+@@ -113,7 +113,7 @@
+
+ static List *ota_queue = NULL;
+
+-wap_dispatch_func_t *dispatch_to_wsp;
++extern wap_dispatch_func_t *dispatch_to_wsp;
+ wap_dispatch_func_t *dispatch_to_wsp_unit;
+
+ /**************************************************************************
+diff -ur gateway-1.4.5/wap/wtp_init.c gateway-1.4.5-gcc10/wap/wtp_init.c
+--- gateway-1.4.5/wap/wtp_init.c 2018-01-17 10:24:38.000000000 +0100
++++ gateway-1.4.5-gcc10/wap/wtp_init.c 2021-10-17 22:08:13.404881915 +0200
+@@ -100,8 +100,8 @@
+ */
+ static enum { limbo, running, terminating } initiator_run_status = limbo;
+
+-static wap_dispatch_func_t *dispatch_to_wdp;
+-static wap_dispatch_func_t *dispatch_to_wsp;
++extern wap_dispatch_func_t *dispatch_to_wdp;
++extern wap_dispatch_func_t *dispatch_to_wsp;
+
+ /*
+ * This is a timer 'tick'. All timer values multiplies of this value.
Summary(pl.UTF-8): Bramka WAP oraz SMS
Name: kannel
Version: 1.4.5
-Release: 3
+Release: 4
License: BSD-like (see COPYING)
Group: Networking/Daemons
Source0: http://www.kannel.org/download/%{version}/gateway-%{version}.tar.gz
Patch0: %{name}-bison.patch
Patch1: %{name}-openssl-1.1.0.patch
Patch2: %{name}-parallel-build.patch
+Patch3: gcc10.patch
URL: http://www.kannel.org/
BuildRequires: ImageMagick
BuildRequires: autoconf
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
cp -f /usr/share/automake/config.sub .