Avoid build failure if AI_ADDRCONFIG isn't available.

This commit is contained in:
dholland 2012-08-26 07:14:28 +00:00
parent e403dc1802
commit 366f492dd5
2 changed files with 19 additions and 1 deletions

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.1 2012/08/20 12:17:20 wiz Exp $
$NetBSD: distinfo,v 1.2 2012/08/26 07:14:28 dholland Exp $
SHA1 (freeDiameter/1.1.2.tar.gz) = 2cef81658e3700302a608d92dc1b78a328a0dcec
RMD160 (freeDiameter/1.1.2.tar.gz) = 1b84b19a08d03f1374f3564496a794458ff3bcfb
Size (freeDiameter/1.1.2.tar.gz) = 744424 bytes
SHA1 (patch-libfdcore_config.c) = 75d3e75f00bf93b1ad21821c7c2e7525c9068e31
SHA1 (patch-libfdcore_fdcore-internal.h) = 040954d716cee4291c74c2c0f108683eba648ab6

View file

@ -0,0 +1,17 @@
$NetBSD: patch-libfdcore_fdcore-internal.h,v 1.1 2012/08/26 07:14:28 dholland Exp $
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 */