fix build with curl 7.62.0; from upstream

This commit is contained in:
naddy 2018-11-08 12:47:34 +00:00
parent deff80e0c0
commit b3910a7a24
2 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.32 2018/10/24 14:28:07 sthen Exp $
# $OpenBSD: Makefile,v 1.33 2018/11/08 12:47:34 naddy Exp $
COMMENT= mail purpose library
@ -6,7 +6,7 @@ GH_ACCOUNT= dinhviethoa
GH_PROJECT= libetpan
GH_TAGNAME= 1.9.1
CATEGORIES= mail devel
REVISION= 0
REVISION= 1
SHARED_LIBS += etpan 18.0 # 22.0

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_low-level_feed_newsfeed_c,v 1.1 2018/11/08 12:47:34 naddy Exp $
Fix build with curl 7.62.0
https://github.com/dinhviethoa/libetpan/commit/945f3702182a7b7920c440512c15cce23ad1bacd
Index: src/low-level/feed/newsfeed.c
--- src/low-level/feed/newsfeed.c.orig
+++ src/low-level/feed/newsfeed.c
@@ -535,7 +535,9 @@ static int curl_error_convert(int curl_res)
case CURLE_SSL_ENGINE_SETFAILED:
case CURLE_SSL_CERTPROBLEM:
case CURLE_SSL_CIPHER:
+#if LIBCURL_VERSION_NUM < 0x073e00
case CURLE_SSL_CACERT:
+#endif
case CURLE_FTP_SSL_FAILED:
case CURLE_SSL_ENGINE_INITFAILED:
return NEWSFEED_ERROR_SSL;