projects/aports·blob master · refs

25 lines · 468 B

1--- ./src/rtp.h.orig
2+++ ./src/rtp.h
3@@ -47,6 +47,22 @@
4
5 #define RTP_NSAMPLES_UNKNOWN (-1)
6
7+/*
8+ * Normally would define this in the .c file,
9+ * but this header is used in multiple places -
10+ * easier to make the patch here once
11+ */
12+
13+#include "config.h"
14+
15+#if defined(HAVE_SYS_ENDIAN_H)
16+#include <sys/endian.h>
17+#endif
18+#if defined(HAVE_ENDIAN_H)
19+#include <endian.h>
20+#endif
21+
22+
23 #if !defined(BYTE_ORDER)
24 # error "BYTE_ORDER needs to be defined"
25 #endif