]> git.pld-linux.org Git - packages/mailutils.git/commitdiff
- fix building with gcc 10.x
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 2 Jun 2020 19:20:10 +0000 (21:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 2 Jun 2020 19:20:10 +0000 (21:20 +0200)
ggc10.patch [new file with mode: 0644]
mailutils.spec

diff --git a/ggc10.patch b/ggc10.patch
new file mode 100644 (file)
index 0000000..36f4631
--- /dev/null
@@ -0,0 +1,33 @@
+--- mailutils-3.9/lib/tcpwrap.h~       2020-03-13 07:52:46.000000000 +0100
++++ mailutils-3.9/lib/tcpwrap.h        2020-06-02 21:09:57.675538739 +0200
+@@ -17,7 +17,7 @@
+ #include <mailutils/types.h>
+ extern int mu_tcp_wrapper_enable;
+-const char *mu_tcp_wrapper_daemon;
++extern const char *mu_tcp_wrapper_daemon;
+ extern int mu_tcpwrapper_access (int fd);
+ extern void mu_tcpwrapper_cfg_init (void);
+ extern int mu_tcp_wrapper_prefork (int fd, 
+--- mailutils-3.9/imap4d/imap4d.h~     2020-03-13 07:52:44.000000000 +0100
++++ mailutils-3.9/imap4d/imap4d.h      2020-06-02 21:11:17.661720737 +0200
+@@ -229,7 +229,7 @@
+ extern int test_mode;
+ extern int silent_expunge;
+-int tls_available;
++extern int tls_available;
+ /* Input functions */
+ extern mu_stream_t iostream;
+--- mailutils-3.9/imap4d/imap4d.c~     2020-03-13 07:52:44.000000000 +0100
++++ mailutils-3.9/imap4d/imap4d.c      2020-06-02 21:11:49.814867424 +0200
+@@ -20,6 +20,8 @@
+ #include <mailutils/kwd.h>
+ #include "tcpwrap.h"
++int tls_available;
++
+ mu_m_server_t server;
+ unsigned int idle_timeout = 1800;
+ int imap4d_transcript;
index 3ec65e03ee442e350a2f4d545e12935d458c9fd7..1bf76494b324751e9aa4a794b1098150d2d10128 100644 (file)
@@ -41,6 +41,7 @@ Patch3:               %{name}-includes.patch
 Patch4:                %{name}-examples.patch
 Patch5:                %{name}-extern.patch
 Patch6:                %{name}-cpp.patch
+Patch7:                ggc10.patch
 URL:           http://www.gnu.org/software/mailutils/mailutils.html
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.11
@@ -190,6 +191,7 @@ skrzynek pocztowych.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__rm} po/stamp-po
 
This page took 0.195393 seconds and 4 git commands to generate.