aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/define-byte-order.patch
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2015-03-11 01:22:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-12 17:29:14 +0000
commitb854496b5c3733d24051f8307345ad011cf66ef3 (patch)
tree7ec74ae93b2f8548a5cbaee63817c522e258315c /main/rtpproxy/define-byte-order.patch
parentf63a6696c436b6e38955b4b6c36316cdf5be5433 (diff)
downloadaports-b854496b5c3733d24051f8307345ad011cf66ef3.tar.bz2
aports-b854496b5c3733d24051f8307345ad011cf66ef3.tar.xz
main/rtpproxy: Version bump to 2.0.0
new subpackage: rtpproxy-debug
Diffstat (limited to 'main/rtpproxy/define-byte-order.patch')
-rw-r--r--main/rtpproxy/define-byte-order.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/rtpproxy/define-byte-order.patch b/main/rtpproxy/define-byte-order.patch
new file mode 100644
index 0000000000..1e9fe4d8b1
--- /dev/null
+++ b/main/rtpproxy/define-byte-order.patch
@@ -0,0 +1,25 @@
+--- ./src/rtp.h.orig
++++ ./src/rtp.h
+@@ -47,6 +47,22 @@
+
+ #define RTP_NSAMPLES_UNKNOWN (-1)
+
++/*
++ * Normally would define this in the .c file,
++ * but this header is used in multiple places -
++ * easier to make the patch here once
++ */
++
++#include "config.h"
++
++#if defined(HAVE_SYS_ENDIAN_H)
++#include <sys/endian.h>
++#endif
++#if defined(HAVE_ENDIAN_H)
++#include <endian.h>
++#endif
++
++
+ #if !defined(BYTE_ORDER)
+ # error "BYTE_ORDER needs to be defined"
+ #endif