aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs/0001-mozjs17.0.0-fix-the-compile-bug-of-powerpc.patch
blob: de72d4f9a3139c5f1e048a397522733a5023b3b7 (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
26
27
28
29
30
31
32
33
34
35
36
From da3929a96d9c74e11bf37d128890e18fcb745365 Mon Sep 17 00:00:00 2001
From: Lei Maohui <leimaohui@cn.fujitsu.com>
Date: Mon, 26 Jan 2015 08:53:19 +0900
Subject: [PATCH] mozjs17.0.0: fix the compile bug of powerpc

To fix the bug as following

error: cannot convert '__va_list_tag**' to '__va_list_tag (*)[1]' for
argument '5' to 'JSBool TryArgumentFormatter(JSContext*, const char**,
JSBool, jsval**, __va_list_tag (*)[1])'

Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
---
 jscpucfg.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/jscpucfg.h b/jscpucfg.h
index dfb1c14..8683491 100644
--- a/jscpucfg.h
+++ b/jscpucfg.h
@@ -47,6 +47,12 @@
 #elif defined(JS_HAVE_ENDIAN_H)
 # include <endian.h>
 
+#if defined(_POWER) || defined(__powerpc__) || \
+    defined(__ppc__)
+# define HAVE_VA_LIST_AS_ARRAY 1
+# endif
+
+
 # if defined(__BYTE_ORDER)
 #  if __BYTE_ORDER == __LITTLE_ENDIAN
 #   define IS_LITTLE_ENDIAN 1
-- 
1.8.4.2