From d1c2023088259e0455f1dc86f074e250171c6625 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Jun 2015 13:48:30 +0200 Subject: [PATCH] rtpproxy: fix build on musl Signed-off-by: Daniel Golle --- .../patches/100-no-sysctl-on-musl.patch | 14 +++++++++++ .../patches/101-include-endian-h.patch | 13 +++++++++++ .../102-don-t-build-rtpproxy_debug.patch | 23 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 net/rtpproxy/patches/100-no-sysctl-on-musl.patch create mode 100644 net/rtpproxy/patches/101-include-endian-h.patch create mode 100644 net/rtpproxy/patches/102-don-t-build-rtpproxy_debug.patch 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 index 0000000..f337733 --- /dev/null +++ b/net/rtpproxy/patches/100-no-sysctl-on-musl.patch @@ -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 + #include ++#ifdef __GLIBC__ + #include ++#endif + #include + #include + #include diff --git a/net/rtpproxy/patches/101-include-endian-h.patch b/net/rtpproxy/patches/101-include-endian-h.patch new file mode 100644 index 0000000..4a4b390 --- /dev/null +++ b/net/rtpproxy/patches/101-include-endian-h.patch @@ -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 ++ + /* + * 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 index 0000000..5d96054 --- /dev/null +++ b/net/rtpproxy/patches/102-don-t-build-rtpproxy_debug.patch @@ -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 -- 2.30.2