summaryrefslogtreecommitdiff
path: root/extra/yassl
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-05-05 10:35:12 +0200
committerunknown <msvensson@shellback.(none)>2006-05-05 10:35:12 +0200
commitc3398d13dea8829cec5de3a6d627866a23df93d7 (patch)
tree0143ae272227d05907a530f5c8473abff8e7cc05 /extra/yassl
parent30c4210d708b8729597cb5913519aa1aa3436920 (diff)
downloadmariadb-git-c3398d13dea8829cec5de3a6d627866a23df93d7.tar.gz
Import from yaSSL
extra/yassl/include/openssl/ssl.h: Import patch yassl.diff extra/yassl/testsuite/test.hpp: Import patch yassl.diff
Diffstat (limited to 'extra/yassl')
-rw-r--r--extra/yassl/include/openssl/ssl.h9
-rw-r--r--extra/yassl/testsuite/test.hpp2
2 files changed, 9 insertions, 2 deletions
diff --git a/extra/yassl/include/openssl/ssl.h b/extra/yassl/include/openssl/ssl.h
index 08075a8df5b..a7eca9138a2 100644
--- a/extra/yassl/include/openssl/ssl.h
+++ b/extra/yassl/include/openssl/ssl.h
@@ -32,12 +32,19 @@
#include "opensslv.h" /* for version number */
#include "rsa.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
-extern "C" void yaSSL_CleanUp(); /* call once at end of application use to
+ void yaSSL_CleanUp(); /* call once at end of application use to
free static singleton memory holders,
not a leak per se, but helpful when
looking for them */
+#if defined(__cplusplus)
+} // extern
+#endif
+
#if defined(__cplusplus) && !defined(YASSL_MYSQL_COMPATIBLE)
namespace yaSSL {
extern "C" {
diff --git a/extra/yassl/testsuite/test.hpp b/extra/yassl/testsuite/test.hpp
index 7fe8656f6d2..259975fba0b 100644
--- a/extra/yassl/testsuite/test.hpp
+++ b/extra/yassl/testsuite/test.hpp
@@ -27,7 +27,7 @@
#endif /* _WIN32 */
-#if defined(__MACH__) || defined(_WIN32)
+#if !defined(_SOCKLEN_T) && (defined(__MACH__) || defined(_WIN32))
typedef int socklen_t;
#endif