rtpproxy: fix build on musl
authorDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 11:48:30 +0000 (13:48 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 11:48:30 +0000 (13:48 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/rtpproxy/patches/100-no-sysctl-on-musl.patch [new file with mode: 0644]
net/rtpproxy/patches/101-include-endian-h.patch [new file with mode: 0644]
net/rtpproxy/patches/102-don-t-build-rtpproxy_debug.patch [new file with mode: 0644]

diff --git a/net/rtpproxy/patches/100-no-sysctl-on-musl.patch b/net/rtpproxy/patches/100-no-sysctl-on-musl.patch
new file mode 100644 (file)
index 0000000..f337733
--- /dev/null
@@ -0,0 +1,14 @@
+Index: rtpproxy-2.0.0/src/rtpp_util.c
+===================================================================
+--- rtpproxy-2.0.0.orig/src/rtpp_util.c
++++ rtpproxy-2.0.0/src/rtpp_util.c
+@@ -28,7 +28,9 @@
+ #include <sys/time.h>
+ #include <sys/types.h>
++#ifdef __GLIBC__
+ #include <sys/sysctl.h>
++#endif
+ #include <sys/resource.h>
+ #include <errno.h>
+ #include <fcntl.h>
diff --git a/net/rtpproxy/patches/101-include-endian-h.patch b/net/rtpproxy/patches/101-include-endian-h.patch
new file mode 100644 (file)
index 0000000..4a4b390
--- /dev/null
@@ -0,0 +1,13 @@
+Index: rtpproxy-2.0.0/src/rtp.h
+===================================================================
+--- rtpproxy-2.0.0.orig/src/rtp.h
++++ rtpproxy-2.0.0/src/rtp.h
+@@ -29,6 +29,8 @@
+ #ifndef _RTP_H_
+ #define _RTP_H_
++#include <endian.h>
++
+ /*
+  * RTP payload types
+  */
diff --git a/net/rtpproxy/patches/102-don-t-build-rtpproxy_debug.patch b/net/rtpproxy/patches/102-don-t-build-rtpproxy_debug.patch
new file mode 100644 (file)
index 0000000..5d96054
--- /dev/null
@@ -0,0 +1,23 @@
+Index: rtpproxy-2.0.0/src/Makefile.am
+===================================================================
+--- rtpproxy-2.0.0.orig/src/Makefile.am
++++ rtpproxy-2.0.0/src/Makefile.am
+@@ -1,4 +1,4 @@
+-bin_PROGRAMS=rtpproxy rtpproxy_debug
++bin_PROGRAMS=rtpproxy
+ rtpproxy_SOURCES=main.c rtp.h rtp_server.c rtp_server.h \
+   rtpp_defines.h rtpp_log.h rtpp_record.c rtpp_record.h rtpp_session.h \
+   rtpp_util.c rtpp_util.h rtp.c rtp_resizer.c rtp_resizer.h rtpp_session.c \
+Index: rtpproxy-2.0.0/src/Makefile.in
+===================================================================
+--- rtpproxy-2.0.0.orig/src/Makefile.in
++++ rtpproxy-2.0.0/src/Makefile.in
+@@ -78,7 +78,7 @@ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+-bin_PROGRAMS = rtpproxy$(EXEEXT) rtpproxy_debug$(EXEEXT)
++bin_PROGRAMS = rtpproxy$(EXEEXT)
+ subdir = src
+ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(srcdir)/config.h.in $(top_srcdir)/depcomp