diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-05 16:00:22 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2012-05-05 16:00:22 +0200 |
commit | 57c2ea188cee014b7cbad32dbd249f5147f884b3 (patch) | |
tree | c40d48a6dd56726ede7e2af0a6e7103cb8d6d917 /plugin | |
parent | aa8f0606e809f19c23f918286cbfefc5a4172072 (diff) | |
download | mariadb-git-57c2ea188cee014b7cbad32dbd249f5147f884b3.tar.gz |
allow handlersocket on FreeBSD, fix getaddrinfo problem
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/handler_socket/CMakeLists.txt | 2 | ||||
-rw-r--r-- | plugin/handler_socket/libhsclient/auto_addrinfo.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/handler_socket/CMakeLists.txt b/plugin/handler_socket/CMakeLists.txt index db232ced7ae..358139eda1e 100644 --- a/plugin/handler_socket/CMakeLists.txt +++ b/plugin/handler_socket/CMakeLists.txt @@ -1,5 +1,5 @@ -IF(WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +IF(WIN32) # Handlersocket does not compile on Windows, compiles but does # not start on FreeBSD. RETURN() diff --git a/plugin/handler_socket/libhsclient/auto_addrinfo.hpp b/plugin/handler_socket/libhsclient/auto_addrinfo.hpp index f0c07060be1..6a807a6fcc7 100644 --- a/plugin/handler_socket/libhsclient/auto_addrinfo.hpp +++ b/plugin/handler_socket/libhsclient/auto_addrinfo.hpp @@ -35,7 +35,7 @@ struct auto_addrinfo : private noncopyable { int resolve(const char *node, const char *service, int flags = 0, int family = AF_UNSPEC, int socktype = SOCK_STREAM, int protocol = 0) { reset(); - addrinfo hints; + addrinfo hints = { }; hints.ai_flags = flags; hints.ai_family = family; hints.ai_socktype = socktype; |