pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/net/freeDiameter



On Sat, Aug 25, 2012 at 10:29:04PM +0000, David Holland wrote:
 > On Sun, Aug 26, 2012 at 12:20:51AM +0200, Thomas Klausner wrote:
 >  > > 
 > /home/pkgbulk/c/obj/net/freeDiameter/work/freeDiameter-1.1.2/libfdcore/p_cnx.c:89:20:
 >  error: 'AI_ADDRCONFIG' undeclared (first use in this function)
 >  > > 
 > /home/pkgbulk/c/obj/net/freeDiameter/work/freeDiameter-1.1.2/libfdcore/p_cnx.c:89:20:
 >  note: each undeclared identifier is reported only once for each function it 
 > appears in
 >  > > 
 >  > > 6.99.3, amd64
 >  > 
 >  > I don't see this on 6.99.10/amd64, so I'm inclined to disregard this,
 >  > except if it happens on -6 or -5 as well. Any data points there?
 > 
 > Not without installing cmake on a production box, which I don't really
 > want to do.

However, there's nothing to stop it from failing on those platforms.

What does AI_ADDRCONFIG do? It doesn't appear in /usr/share/man, even
on 6.99.x that has it in /usr/include.

This patch ought to do the trick though; I'll commit it after the
libreoffice build finishes.

   ------
$NetBSD$

Avoid build failure if AI_ADDRCONFIG isn't available.

--- libfdcore/fdcore-internal.h~        2012-02-21 17:46:14.000000000 +0000
+++ libfdcore/fdcore-internal.h
@@ -41,6 +41,10 @@
 #include <freeDiameter/freeDiameter-host.h>
 #include <freeDiameter/libfdcore.h>
 
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif
+
 #ifdef DISABLE_SCTP
 #undef IPPROTO_SCTP
 #define IPPROTO_SCTP   (2 = 4) /* some compilation error to spot the 
references */


-- 
David A. Holland
dholland%netbsd.org@localhost



Home | Main Index | Thread Index | Old Index