aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/define-byte-order.patch
diff options
context:
space:
mode:
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