summaryrefslogtreecommitdiff
path: root/src/tcp_address.hpp
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.hpp
parentb6ecb00d23af3611da98d98f28e1c2583d428e00 (diff)
Windows build fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/tcp_address.hpp')
-rw-r--r--src/tcp_address.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tcp_address.hpp b/src/tcp_address.hpp
index 7b848f9..a6075de 100644
--- a/src/tcp_address.hpp
+++ b/src/tcp_address.hpp
@@ -23,8 +23,12 @@
#include "platform.hpp"
+#if defined ZMQ_HAVE_WINDOWS
+#include "windows.hpp"
+#else
#include <sys/socket.h>
#include <netinet/in.h>
+#endif
namespace zmq
{
@@ -42,7 +46,11 @@ namespace zmq
// If 'ipv4only' is true, the name will never resolve to IPv6 address.
int resolve (const char* name_, bool local_, bool ipv4only_);
+#if defined ZMQ_HAVE_WINDOWS
+ unsigned short family ();
+#else
sa_family_t family ();
+#endif
sockaddr *addr ();
socklen_t addrlen ();