Package: faac / 1.29.9.2-2

0006-Fix-compilation-on-big-endian-systems.patch Patch series | download
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
26
27
28
29
30
31
From a06702ebb8ba6076be47abd071492701f3478e0f Mon Sep 17 00:00:00 2001
From: Takashi Yoshi <takashi@yoshi.email>
Date: Tue, 26 Dec 2017 13:06:37 +0100
Subject: [PATCH 6/7] Fix compilation on big endian systems

The WORDS_BIGENDIAN macro is defined in config.h, but this file is not
included in mp4write.
This will result in the code using byte swapping functions incorrectly
and compilation fails because __builtin_bswap16 is not defined.
---
 frontend/mp4write.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frontend/mp4write.c b/frontend/mp4write.c
index dcc8228..058cce1 100644
--- a/frontend/mp4write.c
+++ b/frontend/mp4write.c
@@ -17,6 +17,10 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>
-- 
2.18.0