Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 1 | From 0c9e8f586ba52a9aef5ed298e8315b2598b8fb72 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 25 May 2019 16:54:45 -0700 |
| 4 | Subject: [PATCH] js: Fix build with musl |
| 5 | |
| 6 | The MIPS specific header <sgidefs.h> is not provided by musl |
| 7 | linux kernel headers provide <asm/sgidefs.h> which has same definitions |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | js/src/jsmath.cpp | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/js/src/jsmath.cpp b/js/src/jsmath.cpp |
| 17 | index a28968be..8facaa81 100644 |
| 18 | --- a/js/src/jsmath.cpp |
| 19 | +++ b/js/src/jsmath.cpp |
| 20 | @@ -71,7 +71,7 @@ |
| 21 | #elif defined(__s390__) |
| 22 | #define GETRANDOM_NR 349 |
| 23 | #elif defined(__mips__) |
| 24 | -#include <sgidefs.h> |
| 25 | +#include <asm/sgidefs.h> |
| 26 | #if _MIPS_SIM == _MIPS_SIM_ABI32 |
| 27 | #define GETRANDOM_NR 4353 |
| 28 | #elif _MIPS_SIM == _MIPS_SIM_ABI64 |
| 29 | -- |
| 30 | 2.21.0 |
| 31 | |