1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-21 20:50:31 -04:00
ports/databases/freetds/files/patch-src_tds_tls.c
Felix Palmen 59e28f1603 databases/freetds: Fix build with libressl 3.5
Approved by:		bofh (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D37052
2022-11-01 11:30:35 +01:00

31 lines
775 B
C

--- src/tds/tls.c.orig 2022-05-31 06:46:53 UTC
+++ src/tds/tls.c
@@ -53,6 +53,10 @@
#include <sys/socket.h>
#endif
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/socket.h>
+#endif
+
#include <freetds/tds.h>
#include <freetds/utils/string.h>
#include <freetds/tls.h>
@@ -600,7 +604,7 @@ tds_ssl_free(BIO *a)
return 1;
}
-#if OPENSSL_VERSION_NUMBER < 0x1010000FL || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x1010000FL
static BIO_METHOD tds_method_login[1] = {
{
BIO_TYPE_MEM,
@@ -664,7 +668,7 @@ tds_deinit_openssl_methods(void)
# endif
#endif
-#if OPENSSL_VERSION_NUMBER < 0x1010000FL || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x1010000FL
static tds_mutex *openssl_locks;
static void