From b49c1750b8c300e64ea14dd28b442cac5d5530cd Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 15 Dec 2016 20:22:14 +0000 Subject: [PATCH] Fix build with LibreSSL. PR: 215323 Submitted by: naddy --- net/ntp/Makefile | 4 ---- net/ntp/files/patch-include_libssl__compat.h | 11 +++++++++++ net/ntp/files/patch-libntp_libssl__compat.c | 11 +++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 net/ntp/files/patch-include_libssl__compat.h create mode 100644 net/ntp/files/patch-libntp_libssl__compat.c diff --git a/net/ntp/Makefile b/net/ntp/Makefile index ca827574cfa1..3aa5960b7578 100644 --- a/net/ntp/Makefile +++ b/net/ntp/Makefile @@ -70,10 +70,6 @@ ${D}_CONFIGURE_ON= --enable-${D} BROKEN= Does not build under FreeBSD-9, aclocal not found .endif -.if ${SSL_DEFAULT:Mlibressl*} -IGNORE= detected LibreSSL (md5 definition conflicts) -.endif - # XXX Temporary hack. Remember to remove this next commit. post-extract: @${TOUCH} ${WRKSRC}/scripts/build/checkHtmlFileDates diff --git a/net/ntp/files/patch-include_libssl__compat.h b/net/ntp/files/patch-include_libssl__compat.h new file mode 100644 index 000000000000..7e03c01c4a67 --- /dev/null +++ b/net/ntp/files/patch-include_libssl__compat.h @@ -0,0 +1,11 @@ +--- include/libssl_compat.h.orig 2016-11-21 12:28:40 UTC ++++ include/libssl_compat.h +@@ -25,7 +25,7 @@ + #include "openssl/rsa.h" + + /* ----------------------------------------------------------------- */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + /* ----------------------------------------------------------------- */ + + # include diff --git a/net/ntp/files/patch-libntp_libssl__compat.c b/net/ntp/files/patch-libntp_libssl__compat.c new file mode 100644 index 000000000000..14117da9c86e --- /dev/null +++ b/net/ntp/files/patch-libntp_libssl__compat.c @@ -0,0 +1,11 @@ +--- libntp/libssl_compat.c.orig 2016-11-21 12:28:40 UTC ++++ libntp/libssl_compat.c +@@ -23,7 +23,7 @@ + #include "ntp_types.h" + + /* ----------------------------------------------------------------- */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + /* ----------------------------------------------------------------- */ + + #include "libssl_compat.h"