1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

mail/qpopper: fix build with -fno-common (clang 11 and gcc 10)

PORTREVISION not bumped as it fixes build for FreeBSD 13.

Reported by:	pkg-fallout
This commit is contained in:
Eugene Grosbein 2020-08-20 09:31:20 +00:00
parent 3b42f93d56
commit ee6a3e31b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545511
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- popper/popper.c.orig 2011-05-31 02:13:40.000000000 +0700
+++ popper/popper.c 2020-08-20 16:22:31.645139000 +0700
@@ -430,7 +430,7 @@ DEBUG_LOG1 ( &p,"(v%s) Intro", VERSION )
}
-jmp_buf env;
+static jmp_buf env;
/*

View File

@ -1,5 +1,14 @@
--- popper/pop_tls_openssl.c.orig 2011-05-30 19:13:40 UTC
+++ popper/pop_tls_openssl.c
@@ -89,7 +89,7 @@
/* ---- Globals ---- */
extern volatile BOOL poptimeout;
extern int pop_timeout;
-jmp_buf env;
+static jmp_buf env;
@@ -312,21 +312,31 @@ openssl_init ( pop_tls *pTLS, POP *pPOP
* concern.
*/
@ -32,7 +41,7 @@
case QPOP_TLSv1: /* TLS version 1 only */
DEBUG_LOG0 ( pPOP, "...setting method to TLSv1_server_method" );
@@ -547,7 +547,8 @@ openssl_handshake ( pop_tls *pTLS )
@@ -537,7 +547,8 @@ openssl_handshake ( pop_tls *pTLS )
"%s session-id; cipher: %s (%s), %d bits",
VERSION, SSL_CIPHER_get_version(ciph),
pTLS->m_pPOP->client, pTLS->m_pPOP->ipaddr,