]> git.pld-linux.org Git - packages/kannel.git/blobdiff - gcc10.patch
- fix linking with gcc 10+, rebuild with openssl 3.0.0, rel 4
[packages/kannel.git] / gcc10.patch
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644 (file)
index 0000000..ce8092a
--- /dev/null
@@ -0,0 +1,26 @@
+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.
This page took 0.068662 seconds and 4 git commands to generate.