summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs-128/0004-use-asm-sgidefs.h.patch
diff options
context:
space:
mode:
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.patch37
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 @@
1From 1691939a22ec12245f008993e0b9a1b1dfb91e9c Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <amccurdy@gmail.com>
3Date: Sat, 30 Apr 2016 15:29:06 -0700
4Subject: [PATCH] use <asm/sgidefs.h>
5
6Build fix for MIPS with musl libc
7
8The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
9but not by musl. Regardless of the libc, the kernel headers provide
10<asm/sgidefs.h> which provides the same definitions, so use that
11instead.
12
13Upstream-Status: Pending
14
15[Vincent:
16Taken from: https://sourceware.org/bugzilla/show_bug.cgi?id=21070]
17
18Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
19Signed-off-by: Khem Raj <raj.khem@gmail.com>
20Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
21---
22 mfbt/RandomNum.cpp | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/mfbt/RandomNum.cpp b/mfbt/RandomNum.cpp
26index 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