From: Patrick McLean Date: Sat, 8 Dec 2018 07:45:03 +0000 (-0800) Subject: net-misc/ntp: fix libressl-2.8 patch X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=dbdafe931121967cbf17f533f4aa3632abc6c755;p=gentoo.git net-misc/ntp: fix libressl-2.8 patch Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Patrick McLean --- diff --git a/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch b/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch index 7ec2ee678b0e..182fcefe88b4 100644 --- a/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch +++ b/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch @@ -5,12 +5,12 @@ #define OpenSSL_version_num SSLeay #define OpenSSL_version SSLeay_version + -+# if LIBRESSL_VERSION_NUMBER < 0x20800000L ++# if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L #define X509_get0_notBefore X509_get_notBefore #define X509_getm_notBefore X509_get_notBefore #define X509_get0_notAfter X509_get_notAfter #define X509_getm_notAfter X509_get_notAfter -+#endif /* LIBRESSL_VERSION_NUMBER < 0x20800000L */ ++#endif /* !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L */ /* ----------------------------------------------------------------- */ #endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */