summaryrefslogtreecommitdiff
path: root/audio/ncmpc/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ncmpc/patches/patch-ad')
-rw-r--r--audio/ncmpc/patches/patch-ad19
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/ncmpc/patches/patch-ad b/audio/ncmpc/patches/patch-ad
new file mode 100644
index 00000000000..21a32925e38
--- /dev/null
+++ b/audio/ncmpc/patches/patch-ad
@@ -0,0 +1,19 @@
+$NetBSD: patch-ad,v 1.1 2009/02/07 18:38:06 jakllsch Exp $
+
+Allow use of IPv6/getaddrinfo even if AI_ADDRCONFIG extension
+isn't present.
+
+--- src/resolver.c.orig 2009-01-09 13:03:04.000000000 +0000
++++ src/resolver.c
+@@ -49,8 +49,9 @@
+ #endif
+
+ #ifndef MPD_NO_GAI
+-# ifdef AI_ADDRCONFIG
+-# define MPD_HAVE_GAI
++# define MPD_HAVE_GAI
++# ifndef AI_ADDRCONFIG
++# define AI_ADDRCONFIG 0
+ # endif
+ #endif
+