aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/define-byte-order.patch
blob: 1e9fe4d8b19f0f49674d38561298ca9d751464dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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