summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/mpg123/patches/patch-aj15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/mpg123/patches/patch-aj b/audio/mpg123/patches/patch-aj
new file mode 100644
index 00000000000..1e077847ff2
--- /dev/null
+++ b/audio/mpg123/patches/patch-aj
@@ -0,0 +1,15 @@
+$NetBSD: patch-aj,v 1.4 2011/10/17 21:43:27 shattered Exp $
+
+getaddrinfo(3) returns non-zero on error.
+
+--- src/resolver.c.orig 2010-10-04 06:23:26.000000000 +0000
++++ src/resolver.c
+@@ -283,7 +283,7 @@ int open_connection(mpg123_string *host,
+ #endif
+ addrcount = getaddrinfo(host->p, port->p, &hints, &addrlist);
+
+- if(addrcount <0)
++ if(addrcount != 0)
+ {
+ error3("Resolving %s:%s: %s", host->p, port->p, gai_strerror(addrcount));
+ return -1;