summaryrefslogtreecommitdiff
path: root/src/tcp_address.cpp
diff options
context:
space:
mode:
authorBrett Cameron <Brett.Cameron@hp.com>2011-11-04 14:15:06 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-11-04 14:15:06 +0100
commitde1d32daaedce51f655fe73e60988733b2db6557 (patch)
treedc425906bd266ef86e131d43f13ca660a2344b2d /src/tcp_address.cpp
parent50a9ee6e7335b645487a83487285bce6886ba082 (diff)
Fix getaddrinfo calls to work on OpenVMS
Signed-off by: Brett Cameron <Brett.Cameron@hp.com>
Diffstat (limited to 'src/tcp_address.cpp')
-rw-r--r--src/tcp_address.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tcp_address.cpp b/src/tcp_address.cpp
index 1b7577f..dece827 100644
--- a/src/tcp_address.cpp
+++ b/src/tcp_address.cpp
@@ -308,7 +308,11 @@ int zmq::tcp_address_t::resolve_interface (char const *interface_,
int zmq::tcp_address_t::resolve_hostname (const char *hostname_, bool ipv4only_)
{
// Set up the query.
+#if defined ZMQ_HAVE_OPENVMS && defined __ia64 && __INITIAL_POINTER_SIZE == 64
+ __addrinfo64 req;
+#else
addrinfo req;
+#endif
memset (&req, 0, sizeof (req));
// Choose IPv4 or IPv6 protocol family. Note that IPv6 allows for
@@ -329,7 +333,11 @@ int zmq::tcp_address_t::resolve_hostname (const char *hostname_, bool ipv4only_)
// Resolve host name. Some of the error info is lost in case of error,
// however, there's no way to report EAI errors via errno.
+#if defined ZMQ_HAVE_OPENVMS && defined __ia64 && __INITIAL_POINTER_SIZE == 64
+ __addrinfo64 *res;
+#else
addrinfo *res;
+#endif
int rc = getaddrinfo (hostname_, NULL, &req, &res);
if (rc) {
switch (rc) {