From 39b76385ec7a47be5ecc1f237e8431e47dc244ba Mon Sep 17 00:00:00 2001 From: Martti Mela Date: Thu, 28 Jun 2007 15:22:22 +0300 Subject: [PATCH] tport.c, tport_internal.h: minor Open C fixes darcs-hash:20070628122222-1b897-6c46d2c3a967791e436abd2b1adee945f7361616.gz --- libsofia-sip-ua/tport/tport.c | 5 +++++ libsofia-sip-ua/tport/tport_internal.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libsofia-sip-ua/tport/tport.c b/libsofia-sip-ua/tport/tport.c index ea924b5a..66d31569 100644 --- a/libsofia-sip-ua/tport/tport.c +++ b/libsofia-sip-ua/tport/tport.c @@ -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_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] == '[') { /* Remove [] around IPv6 address */ char *end; diff --git a/libsofia-sip-ua/tport/tport_internal.h b/libsofia-sip-ua/tport/tport_internal.h index 468827e2..db95fdd7 100644 --- a/libsofia-sip-ua/tport/tport_internal.h +++ b/libsofia-sip-ua/tport/tport_internal.h @@ -61,7 +61,7 @@ #include -#if !defined(MSG_NOSIGNAL) || defined(__CYGWIN__) +#if !defined(MSG_NOSIGNAL) || defined(__CYGWIN__) || defined(SYMBIAN) #undef MSG_NOSIGNAL #define MSG_NOSIGNAL (0) #endif -- GitLab