Fix build on 10-current

PR:		ports/181879
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Pawel Pekala 2013-10-28 17:23:35 +00:00
parent b4582be9d4
commit 0738863699
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331873
3 changed files with 30 additions and 2 deletions

View File

@ -8,9 +8,9 @@ MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= An ultra lightweight xml-rpc library written in C++
COMMENT= Ultra lightweight xml-rpc library written in C++
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}

View File

@ -0,0 +1,14 @@
--- ulxmlrpcpp/contrib/ssl_connection.cpp.orig
+++ ulxmlrpcpp/contrib/ssl_connection.cpp
@@ -227,7 +227,11 @@
if (ssl_ctx != 0)
SSL_CTX_free(ssl_ctx);
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *meth = SSLv23_method();
+#else
SSL_METHOD *meth = SSLv23_method();
+#endif
ssl_ctx = SSL_CTX_new (meth);

View File

@ -0,0 +1,14 @@
--- ulxmlrpcpp/ulxr_ssl_connection.cpp.orig
+++ ulxmlrpcpp/ulxr_ssl_connection.cpp
@@ -95,7 +95,11 @@
ULXR_API_IMPL(void) SSLConnection::initializeCTX()
{
ULXR_TRACE(ULXR_PCHAR("initializeCTX"));
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *meth = SSLv23_method();
+#else
SSL_METHOD *meth = SSLv23_method();
+#endif
ssl_ctx = SSL_CTX_new (meth);
if (!ssl_ctx)
{