blob: de72d4f9a3139c5f1e048a397522733a5023b3b7 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From da3929a96d9c74e11bf37d128890e18fcb745365 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Mon, 26 Jan 2015 08:53:19 +0900
4Subject: [PATCH] mozjs17.0.0: fix the compile bug of powerpc
5
6To fix the bug as following
7
8error: cannot convert '__va_list_tag**' to '__va_list_tag (*)[1]' for
9argument '5' to 'JSBool TryArgumentFormatter(JSContext*, const char**,
10JSBool, jsval**, __va_list_tag (*)[1])'
11
12Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
13---
14 jscpucfg.h | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/jscpucfg.h b/jscpucfg.h
18index dfb1c14..8683491 100644
19--- a/jscpucfg.h
20+++ b/jscpucfg.h
21@@ -47,6 +47,12 @@
22 #elif defined(JS_HAVE_ENDIAN_H)
23 # include <endian.h>
24
25+#if defined(_POWER) || defined(__powerpc__) || \
26+ defined(__ppc__)
27+# define HAVE_VA_LIST_AS_ARRAY 1
28+# endif
29+
30+
31 # if defined(__BYTE_ORDER)
32 # if __BYTE_ORDER == __LITTLE_ENDIAN
33 # define IS_LITTLE_ENDIAN 1
34--
351.8.4.2
36