mirror of
https://git.freebsd.org/ports.git
synced 2025-07-09 21:39:17 -04:00
26 lines
606 B
C
26 lines
606 B
C
--- src/tds/tls.c.orig 2015-06-09 10:38:40 UTC
|
|
+++ src/tds/tls.c
|
|
@@ -46,6 +46,10 @@
|
|
#include <sys/stat.h>
|
|
#endif /* HAVE_SYS_STAT_H */
|
|
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
+#include <sys/socket.h>
|
|
+#endif
|
|
+
|
|
#include <freetds/tds.h>
|
|
#include <freetds/string.h>
|
|
#include <freetds/tls.h>
|
|
@@ -72,6 +76,12 @@
|
|
#define SSL_PTR ptr
|
|
#else
|
|
|
|
+#ifdef LIBRESSL_VERSION_NUMBER
|
|
+static pthread_mutex_t *openssllocks;
|
|
+#undef OPENSSL_VERSION_NUMBER
|
|
+#define OPENSSL_VERSION_NUMBER 0x1000107fL
|
|
+#endif
|
|
+
|
|
/* some compatibility layer */
|
|
#if OPENSSL_VERSION_NUMBER < 0x1010000FL
|
|
static inline void
|