On date Wednesday 2010-07-07 17:30:57 +0300, Pekka Pessi phoned this:
> 2010/7/6 Stefano Sabatini <ssabat...@reilabs.com>:
> > Hi, as in subject.
> >
> > The patch requires to run autoheader to re-generate the config.h.in
> > file.
>
> Thanks for patch. I wonder if it is enough just to #undef
> gai_strerror? No need to check its declaration?
Exactly, this way the patch is much simpler.
Regards.
>From 3ed1bea1f042248645e25d4b26f4f57dcf12f6ce Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <ssabat...@reilabs.com>
Date: Tue, 6 Jul 2010 15:43:13 +0200
Subject: [PATCH 2/2] Undefine gai_strerror symbol if the function is not defined.
Avoid a re-definition issue and fix compilation in MinGW, where
gai_strerror is declared but not defined.
---
libsofia-sip-ua/su/su_addrinfo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libsofia-sip-ua/su/su_addrinfo.c b/libsofia-sip-ua/su/su_addrinfo.c
index c8005c0..6637da3 100644
--- a/libsofia-sip-ua/su/su_addrinfo.c
+++ b/libsofia-sip-ua/su/su_addrinfo.c
@@ -820,6 +820,8 @@ freeaddrinfo(ai)
#endif
#if !HAVE_GAI_STRERROR
+#undef gai_strerror
+
static
char *
gai_strerror(ecode)
--
1.7.1
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel