summaryrefslogtreecommitdiff
path: root/extra/yassl/include/socket_wrapper.hpp
diff options
context:
space:
mode:
authormonty@mysql.com/narttu.mysql.fi <>2007-02-22 16:59:57 +0200
committermonty@mysql.com/narttu.mysql.fi <>2007-02-22 16:59:57 +0200
commite5cc397f33e6c9916043742194bbdc809e118905 (patch)
tree260c15e9d6f383c404ea95e9e68ef07f0eba2cea /extra/yassl/include/socket_wrapper.hpp
parent6946fa682fd6b0f90f17f1bd2bf1bdc9579c0fca (diff)
downloadmariadb-git-e5cc397f33e6c9916043742194bbdc809e118905.tar.gz
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
Diffstat (limited to 'extra/yassl/include/socket_wrapper.hpp')
-rw-r--r--extra/yassl/include/socket_wrapper.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/extra/yassl/include/socket_wrapper.hpp b/extra/yassl/include/socket_wrapper.hpp
index 308704c2af0..de28778ead9 100644
--- a/extra/yassl/include/socket_wrapper.hpp
+++ b/extra/yassl/include/socket_wrapper.hpp
@@ -38,16 +38,14 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
+#include "openssl/ssl.h" /* for socket_t */
namespace yaSSL {
typedef unsigned int uint;
-#ifdef _WIN32
- typedef SOCKET socket_t;
-#else
- typedef int socket_t;
+#ifndef _WIN32
const socket_t INVALID_SOCKET = -1;
const int SD_RECEIVE = 0;
const int SD_SEND = 1;