Commit 1f063dc3 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1103 from ricnewton/master

Fix windows build
parents 61c2a7d4 369725ab
...@@ -419,6 +419,8 @@ set(cxx-sources ...@@ -419,6 +419,8 @@ set(cxx-sources
session_base.cpp session_base.cpp
signaler.cpp signaler.cpp
socket_base.cpp socket_base.cpp
socks.cpp
socks_connecter.cpp
stream.cpp stream.cpp
stream_engine.cpp stream_engine.cpp
sub.cpp sub.cpp
......
...@@ -18,14 +18,17 @@ ...@@ -18,14 +18,17 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include "err.hpp" #include "err.hpp"
#include "platform.hpp" #include "platform.hpp"
#include "socks.hpp" #include "socks.hpp"
#include "tcp.hpp" #include "tcp.hpp"
#ifndef ZMQ_HAVE_WINDOWS
#include <sys/socket.h>
#include <netdb.h>
#endif
zmq::socks_greeting_t::socks_greeting_t (uint8_t method_) : zmq::socks_greeting_t::socks_greeting_t (uint8_t method_) :
num_methods (1) num_methods (1)
{ {
......
...@@ -102,7 +102,7 @@ namespace zmq ...@@ -102,7 +102,7 @@ namespace zmq
// Get the file descriptor of newly created connection. Returns // Get the file descriptor of newly created connection. Returns
// retired_fd if the connection was unsuccessfull. // retired_fd if the connection was unsuccessfull.
int check_proxy_connection (); zmq::fd_t check_proxy_connection ();
socks_greeting_encoder_t greeting_encoder; socks_greeting_encoder_t greeting_encoder;
socks_choice_decoder_t choice_decoder; socks_choice_decoder_t choice_decoder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment