From 369725ab8f15099d4b81b63dbe7d60a52cf2433b Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Mon, 23 Jun 2014 13:10:43 +0100 Subject: [PATCH] Fix windows build --- CMakeLists.txt | 2 ++ src/socks.cpp | 7 +++++-- src/socks_connecter.hpp | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdcb3b71..66cc9ecb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -419,6 +419,8 @@ set(cxx-sources session_base.cpp signaler.cpp socket_base.cpp + socks.cpp + socks_connecter.cpp stream.cpp stream_engine.cpp sub.cpp diff --git a/src/socks.cpp b/src/socks.cpp index e5a3f560..16b405b3 100644 --- a/src/socks.cpp +++ b/src/socks.cpp @@ -18,14 +18,17 @@ */ #include -#include -#include #include "err.hpp" #include "platform.hpp" #include "socks.hpp" #include "tcp.hpp" +#ifndef ZMQ_HAVE_WINDOWS +#include +#include +#endif + zmq::socks_greeting_t::socks_greeting_t (uint8_t method_) : num_methods (1) { diff --git a/src/socks_connecter.hpp b/src/socks_connecter.hpp index e34314b2..0443ff83 100644 --- a/src/socks_connecter.hpp +++ b/src/socks_connecter.hpp @@ -102,7 +102,7 @@ namespace zmq // Get the file descriptor of newly created connection. Returns // retired_fd if the connection was unsuccessfull. - int check_proxy_connection (); + zmq::fd_t check_proxy_connection (); socks_greeting_encoder_t greeting_encoder; socks_choice_decoder_t choice_decoder;