Commit 39b76385 authored by Martti Mela's avatar Martti Mela

tport.c, tport_internal.h: minor Open C fixes

darcs-hash:20070628122222-1b897-6c46d2c3a967791e436abd2b1adee945f7361616.gz
parent 3706fe1e
...@@ -3746,6 +3746,11 @@ tport_resolve(tport_t *self, msg_t *msg, tp_name_t const *tpn) ...@@ -3746,6 +3746,11 @@ tport_resolve(tport_t *self, msg_t *msg, tp_name_t const *tpn)
hints->ai_socktype = self->tp_addrinfo->ai_socktype; hints->ai_socktype = self->tp_addrinfo->ai_socktype;
hints->ai_protocol = self->tp_addrinfo->ai_protocol; hints->ai_protocol = self->tp_addrinfo->ai_protocol;
#if HAVE_OPEN_C
if (host_is_ip_address(tpn->tpn_host))
hints->ai_flags |= AI_NUMERICHOST;
#endif
if (tpn->tpn_host[0] == '[') { if (tpn->tpn_host[0] == '[') {
/* Remove [] around IPv6 address */ /* Remove [] around IPv6 address */
char *end; char *end;
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
#include <sofia-sip/su_debug.h> #include <sofia-sip/su_debug.h>
#if !defined(MSG_NOSIGNAL) || defined(__CYGWIN__) #if !defined(MSG_NOSIGNAL) || defined(__CYGWIN__) || defined(SYMBIAN)
#undef MSG_NOSIGNAL #undef MSG_NOSIGNAL
#define MSG_NOSIGNAL (0) #define MSG_NOSIGNAL (0)
#endif #endif
......
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