Use getaddrinfo(3) even if AI_ADDRCONFIG is missing.

PKGREV++
This commit is contained in:
jakllsch 2012-03-04 20:10:47 +00:00
parent 15ce72df89
commit 6aacdd3434
6 changed files with 38 additions and 5 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.13 2012/03/03 00:12:41 wiz Exp $
# $NetBSD: Makefile,v 1.14 2012/03/04 20:10:47 jakllsch Exp $
#
DISTNAME= libmpd-0.20.0
PKGREVISION= 3
PKGREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://download.sarine.nl/Programs/gmpc/0.20.0/ \
${MASTER_SITE_SOURCEFORGE:=musicpd/}

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.7 2010/06/15 21:15:11 joerg Exp $
$NetBSD: distinfo,v 1.8 2012/03/04 20:10:47 jakllsch Exp $
SHA1 (libmpd-0.20.0.tar.gz) = cb7c9b5dff0e7f560a75d1904a97f316347e7d7b
RMD160 (libmpd-0.20.0.tar.gz) = d4462aa0fdc01f985f35f7eeaec4b2173b933a91
Size (libmpd-0.20.0.tar.gz) = 363996 bytes
SHA1 (patch-src_libmpdclient.c) = 89071667f47ddd6003c6fbc35611b2f9f588b236

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_libmpdclient.c,v 1.1 2012/03/04 20:10:47 jakllsch Exp $
Use getaddrinfo(3) even if AI_ADDRCONFIG is missing.
--- src/libmpdclient.c.orig 2010-03-22 03:18:23.000000000 +0000
+++ src/libmpdclient.c
@@ -64,6 +64,9 @@
#define COMMAND_LIST_OK 2
#ifndef MPD_NO_GAI
+# ifndef AI_ADDRCONFIG
+# define AI_ADDRCONFIG 0
+# endif
# ifdef AI_ADDRCONFIG
# define MPD_HAVE_GAI
# endif

View file

@ -1,7 +1,8 @@
# $NetBSD: Makefile,v 1.3 2012/01/16 21:00:00 drochner Exp $
# $NetBSD: Makefile,v 1.4 2012/03/04 20:10:47 jakllsch Exp $
#
DISTNAME= libmpdclient-2.6
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
EXTRACT_SUFX= .tar.bz2

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.2 2012/01/16 21:00:00 drochner Exp $
$NetBSD: distinfo,v 1.3 2012/03/04 20:10:47 jakllsch Exp $
SHA1 (libmpdclient-2.6.tar.bz2) = 00d88152c0e8599f56d01625da41b55d3a43c264
RMD160 (libmpdclient-2.6.tar.bz2) = 83dc3a7f57cee7b463e2a1e96fe66b313d35e41f
Size (libmpdclient-2.6.tar.bz2) = 288343 bytes
SHA1 (patch-src_resolver.c) = e6622391b2c844969cff2a0c927e3185a27bc81b

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_resolver.c,v 1.1 2012/03/04 20:10:47 jakllsch Exp $
Use getaddrinfo(3) even if AI_ADDRCONFIG is missing.
--- src/resolver.c.orig 2011-10-24 02:43:05.000000000 +0000
+++ src/resolver.c
@@ -47,6 +47,9 @@
#endif
#if defined(ENABLE_TCP) && !defined(MPD_NO_GAI)
+# ifndef AI_ADDRCONFIG
+# define AI_ADDRCONFIG 0
+# endif
# ifdef AI_ADDRCONFIG
# define MPD_HAVE_GAI
# endif