summaryrefslogtreecommitdiff
path: root/src/tcp_address.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-08-18 17:58:46 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-08-18 17:58:46 +0200
commit898ee99dc16bbd494cabd7e09efac120d79990d7 (patch)
treeef98ae2f3d570a66132c4c68673ea960fa34df6f /src/tcp_address.cpp
parentb6ecb00d23af3611da98d98f28e1c2583d428e00 (diff)
Windows build fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/tcp_address.cpp')
-rw-r--r--src/tcp_address.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tcp_address.cpp b/src/tcp_address.cpp
index 358c847..7be8b75 100644
--- a/src/tcp_address.cpp
+++ b/src/tcp_address.cpp
@@ -23,15 +23,14 @@
#include "tcp_address.hpp"
#include "platform.hpp"
+#include "stdint.hpp"
#include "err.hpp"
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#else
#include <sys/types.h>
-#include <sys/socket.h>
#include <arpa/inet.h>
-#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#endif
@@ -415,7 +414,11 @@ socklen_t zmq::tcp_address_t::addrlen ()
return (socklen_t) sizeof (address.ipv4);
}
+#if defined ZMQ_HAVE_WINDOWS
+unsigned short zmq::tcp_address_t::family ()
+#else
sa_family_t zmq::tcp_address_t::family ()
+#endif
{
return address.generic.sa_family;
}