blob: 7226bbe3ee8e38f4e7e9bc5add54fb59368b0b0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- 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
|