rtpproxy: fix build on musl

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-06-24 13:48:30 +02:00
parent b05a0b7acb
commit d1c2023088
3 changed files with 50 additions and 0 deletions

View file

@ -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>

View file

@ -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
*/

View file

@ -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