diff options
author | Cy Schubert <cy@FreeBSD.org> | 2016-12-15 20:22:14 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2016-12-15 20:22:14 +0000 |
commit | b49c1750b8c300e64ea14dd28b442cac5d5530cd (patch) | |
tree | e8bd4b4167e29486ae8e850803ebec5004f14a9e | |
parent | emulators/citra: update to s20161215 (diff) |
Fix build with LibreSSL.
PR: 215323
Submitted by: naddy
-rw-r--r-- | net/ntp/Makefile | 4 | ||||
-rw-r--r-- | net/ntp/files/patch-include_libssl__compat.h | 11 | ||||
-rw-r--r-- | net/ntp/files/patch-libntp_libssl__compat.c | 11 |
3 files changed, 22 insertions, 4 deletions
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 <openssl/objects.h> 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" |