diff options
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch')
-rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch b/meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch new file mode 100644 index 0000000000..eb3ff452b3 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 1691939a22ec12245f008993e0b9a1b1dfb91e9c Mon Sep 17 00:00:00 2001 | ||
2 | From: Andre McCurdy <amccurdy@gmail.com> | ||
3 | Date: Sat, 30 Apr 2016 15:29:06 -0700 | ||
4 | Subject: [PATCH] use <asm/sgidefs.h> | ||
5 | |||
6 | Build fix for MIPS with musl libc | ||
7 | |||
8 | The MIPS specific header <sgidefs.h> is provided by glibc and uclibc | ||
9 | but not by musl. Regardless of the libc, the kernel headers provide | ||
10 | <asm/sgidefs.h> which provides the same definitions, so use that | ||
11 | instead. | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | [Vincent: | ||
16 | Taken from: https://sourceware.org/bugzilla/show_bug.cgi?id=21070] | ||
17 | |||
18 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> | ||
21 | --- | ||
22 | mfbt/RandomNum.cpp | 2 +- | ||
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/mfbt/RandomNum.cpp b/mfbt/RandomNum.cpp | ||
26 | index 96de5d4055..2cfb2e10ee 100644 | ||
27 | --- a/mfbt/RandomNum.cpp | ||
28 | +++ b/mfbt/RandomNum.cpp | ||
29 | @@ -53,7 +53,7 @@ extern "C" BOOLEAN NTAPI RtlGenRandom(PVOID RandomBuffer, | ||
30 | # elif defined(__s390__) | ||
31 | # define GETRANDOM_NR 349 | ||
32 | # elif defined(__mips__) | ||
33 | -# include <sgidefs.h> | ||
34 | +# include <asm/sgidefs.h> | ||
35 | # if _MIPS_SIM == _MIPS_SIM_ABI32 | ||
36 | # define GETRANDOM_NR 4353 | ||
37 | # elif _MIPS_SIM == _MIPS_SIM_ABI64 | ||