summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorpho <pho>2014-05-14 10:20:15 +0000
committerpho <pho>2014-05-14 10:20:15 +0000
commit3f03e7bf4ca9d00ab4ce9cbce74f4a174385df12 (patch)
tree92897ed5498bde5437b177cdb36b5098b6a6d0b1 /audio
parentbe3b99a727215f141d42412370f1e7f5d838fadd (diff)
downloadpkgsrc-3f03e7bf4ca9d00ab4ce9cbce74f4a174385df12.tar.gz
Fix build error on platforms lacking AI_NUMERICSERV.
Not only Win32 lacks AI_NUMERICSERV. Some version of Darwin (at least Darwin 9) lacks it too.
Diffstat (limited to 'audio')
-rw-r--r--audio/opusfile/distinfo4
-rw-r--r--audio/opusfile/patches/patch-src_http.c15
2 files changed, 15 insertions, 4 deletions
diff --git a/audio/opusfile/distinfo b/audio/opusfile/distinfo
index 806c0eda22f..11e3fbe7ce2 100644
--- a/audio/opusfile/distinfo
+++ b/audio/opusfile/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2014/04/12 08:15:03 wiz Exp $
+$NetBSD: distinfo,v 1.3 2014/05/14 10:20:15 pho Exp $
SHA1 (opusfile-0.5.tar.gz) = 1ba9dabbbaa35034af8167661a918df6c003317e
RMD160 (opusfile-0.5.tar.gz) = 5b384fac3a6094e774a4397826335763f426fcb9
Size (opusfile-0.5.tar.gz) = 437671 bytes
-SHA1 (patch-src_http.c) = 5fd185f21995fc2c7971d600a70cfa61195b6324
+SHA1 (patch-src_http.c) = 8cb1e7a7373eac54dcecc318339f858ac4a78ab6
diff --git a/audio/opusfile/patches/patch-src_http.c b/audio/opusfile/patches/patch-src_http.c
index e8ae75b21e3..f94e89b374e 100644
--- a/audio/opusfile/patches/patch-src_http.c
+++ b/audio/opusfile/patches/patch-src_http.c
@@ -1,8 +1,10 @@
-$NetBSD: patch-src_http.c,v 1.2 2014/04/12 08:15:03 wiz Exp $
+$NetBSD: patch-src_http.c,v 1.3 2014/05/14 10:20:15 pho Exp $
-Avoid using the obsolete ftime() function.
+* Avoid using the obsolete ftime() function.
https://trac.xiph.org/ticket/2014
+* Not only Win32 lacks AI_NUMERICSERV. Some version of Darwin (at least Darwin 9) lacks it too.
+
--- src/http.c.orig 2013-12-05 16:49:13.000000000 +0000
+++ src/http.c
@@ -347,7 +347,7 @@ typedef int op_sock;
@@ -14,6 +16,15 @@ https://trac.xiph.org/ticket/2014
# include <openssl/x509v3.h>
/*The maximum number of simultaneous connections.
+@@ -721,7 +721,7 @@ static struct addrinfo *op_resolve(const
+ char service[6];
+ memset(&hints,0,sizeof(hints));
+ hints.ai_socktype=SOCK_STREAM;
+-#if !defined(_WIN32)
++#if defined(AI_NUMERICSERV)
+ hints.ai_flags=AI_NUMERICSERV;
+ #endif
+ OP_ASSERT(_port<=65535U);
@@ -788,7 +788,7 @@ struct OpusHTTPConn{
/*The next connection in either the LRU or free list.*/
OpusHTTPConn *next;