summaryrefslogtreecommitdiff
path: root/net/rtmpdump
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2020-11-29 22:03:12 +0000
committerdbj <dbj@pkgsrc.org>2020-11-29 22:03:12 +0000
commit8fcd4f1a41bdd70013b2d27b62305b6a097bee0f (patch)
tree500e7a80409741f6f85bbd129b8c7737f72a2213 /net/rtmpdump
parenta3a38fda9f507654f9e48dc0bd6281f72ad387ba (diff)
downloadpkgsrc-8fcd4f1a41bdd70013b2d27b62305b6a097bee0f.tar.gz
net/rtmpdump: work around build failure on MacOS with clang12
Diffstat (limited to 'net/rtmpdump')
-rw-r--r--net/rtmpdump/distinfo3
-rw-r--r--net/rtmpdump/patches/patch-rtmpdump.c26
2 files changed, 28 insertions, 1 deletions
diff --git a/net/rtmpdump/distinfo b/net/rtmpdump/distinfo
index eedd5c0f9ea..39cd7a2bd16 100644
--- a/net/rtmpdump/distinfo
+++ b/net/rtmpdump/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2018/09/23 21:09:32 wiz Exp $
+$NetBSD: distinfo,v 1.11 2020/11/29 22:03:12 dbj Exp $
SHA1 (rtmpdump-2.4-git-fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz) = 245de43e34fa8cf7c06a3604cd32cfafa981f8c0
RMD160 (rtmpdump-2.4-git-fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz) = c11b59337d7b9dd6c8136cc331ee6ade8ed4bc9e
@@ -6,3 +6,4 @@ SHA512 (rtmpdump-2.4-git-fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz) = 05a5
Size (rtmpdump-2.4-git-fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz) = 1030982 bytes
SHA1 (patch-Makefile) = 0001b2c1745f4ee6eae36e780d256ff584631ab9
SHA1 (patch-librtmp_Makefile) = 90a076de219dcf7ba6840913cb6101e007f549cf
+SHA1 (patch-rtmpdump.c) = 7ab83af82e58270e46e75d0357df1f5cead248c4
diff --git a/net/rtmpdump/patches/patch-rtmpdump.c b/net/rtmpdump/patches/patch-rtmpdump.c
new file mode 100644
index 00000000000..c9d02b01782
--- /dev/null
+++ b/net/rtmpdump/patches/patch-rtmpdump.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-rtmpdump.c,v 1.1 2020/11/29 22:03:12 dbj Exp $
+
+On MacOS with clang 12.0.0 we get an undefined symbol
+error for CleanupSockets(). Presumably the inline is
+getting optimized away. Work around this by using the
+same #define as the other sources in this directory.
+
+--- rtmpdump.c.orig 2018-09-23 10:40:58.000000000 +0000
++++ rtmpdump.c
+@@ -67,13 +67,11 @@ InitSockets()
+ #endif
+ }
+
+-inline void
+-CleanupSockets()
+-{
+ #ifdef WIN32
+- WSACleanup();
++#define CleanupSockets() WSACleanup()
++#else
++#define CleanupSockets()
+ #endif
+-}
+
+ #ifdef _DEBUG
+ uint32_t debugTS = 0;