Module: sip-router Branch: ser_core_cvs Commit: 476e1991ab3daaf66d2053cebcb8f00967fe5633 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=476e1991...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Dec 16 14:35:55 2008 +0000
dns: fix build warnings when compiling without ipv6
Author: Vance Shipley vances@motivity.ca Committer: Andrei Pelinescu-Onciul andrei@iptel.org
---
resolve.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/resolve.h b/resolve.h index 76f3903..4b702ec 100644 --- a/resolve.h +++ b/resolve.h @@ -337,9 +337,11 @@ static inline struct hostent* _resolvehost(char* name) { static struct hostent* he=0; #ifdef HAVE_GETIPNODEBYNAME +#ifdef USE_IPV6 int err; static struct hostent* he2=0; #endif +#endif #ifndef DNS_IP_HACK #ifdef USE_IPV6 int len;