Date: Sat, 8 Apr 2017 22:23:20 +0000 (UTC) From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r438072 - in head/databases/freetds: . files Message-ID: <201704082223.v38MNKKY087567@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bofh Date: Sat Apr 8 22:23:19 2017 New Revision: 438072 URL: https://svnweb.freebsd.org/changeset/ports/438072 Log: databases/freetds: Fix build with libressl PR: 217549 Submitted by: w.schwarzenfeld@utanet.at Added: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h (contents, props changed) Modified: head/databases/freetds/Makefile head/databases/freetds/files/patch-src_tds_tls.c Modified: head/databases/freetds/Makefile ============================================================================== --- head/databases/freetds/Makefile Sat Apr 8 22:13:54 2017 (r438071) +++ head/databases/freetds/Makefile Sat Apr 8 22:23:19 2017 (r438072) @@ -4,6 +4,7 @@ PORTNAME= freetds PORTVERSION= 1.00.27 PORTEPOCH= 1 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/stable/ Added: head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/freetds/files/patch-src_tds_sec_negotiate_openssl.h Sat Apr 8 22:23:19 2017 (r438072) @@ -0,0 +1,14 @@ +--- src/tds/sec_negotiate_openssl.h.orig 2017-03-06 16:07:14 UTC ++++ src/tds/sec_negotiate_openssl.h +@@ -37,6 +37,11 @@ + #error HAVE_OPENSSL not defines, this file should not be included + #endif + ++#ifdef LIBRESSL_VERSION_NUMBER ++#undef OPENSSL_VERSION_NUMBER ++#define OPENSSL_VERSION_NUMBER 0x1000107fL ++#endif ++ + static inline const BIGNUM* + rsa_get_n(const RSA *rsa) + { Modified: head/databases/freetds/files/patch-src_tds_tls.c ============================================================================== --- head/databases/freetds/files/patch-src_tds_tls.c Sat Apr 8 22:13:54 2017 (r438071) +++ head/databases/freetds/files/patch-src_tds_tls.c Sat Apr 8 22:23:19 2017 (r438072) @@ -11,3 +11,16 @@ #include <freetds/tds.h> #include <freetds/string.h> #include <freetds/tls.h> +@@ -72,6 +76,12 @@ + #define SSL_PTR ptr + #else + ++#ifdef LIBRESSL_VERSION_NUMBER ++static pthread_mutex_t *openssllocks; ++#undef OPENSSL_VERSION_NUMBER ++#define OPENSSL_VERSION_NUMBER 0x1000107fL ++#endif ++ + /* some compatibility layer */ + #if OPENSSL_VERSION_NUMBER < 0x1010000FL + static inline void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704082223.v38MNKKY087567>