disable ALPN on LibreSSL, which has a large version number, but not ALPN support (closes #23329)
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 1528742..6a88e0c 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -106,7 +106,7 @@
 #endif
 
 /* ALPN added in OpenSSL 1.0.2 */
-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
+#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
 # define HAVE_ALPN
 #endif