0001-Bug-1765100-fix-build-on-mips-musl-libc.patch 984 B

123456789101112131415161718192021222324252627282930313233
  1. From 00e5b818f2d9f3264107801fc2fcff33a9355a78 Mon Sep 17 00:00:00 2001
  2. From: Giulio Benetti <giulio.benetti@benettiengineering.com>
  3. Date: Sun, 17 Apr 2022 23:55:26 +0200
  4. Subject: [PATCH] Bug 1765100 - fix build on mips+musl libc
  5. This patch fix build failure on mips with musl libc by using Linux
  6. <asm/sgidefs.h> instead of the one provided by libc since musl doesn't
  7. provide <sgidefs.h>.
  8. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
  9. ---
  10. This patch is pending upstream:
  11. https://bugzilla.mozilla.org/show_bug.cgi?id=1765100
  12. ---
  13. nspr/pr/include/md/_linux.cfg | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/nspr/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg
  16. index 23b160fd..dbc0d40e 100644
  17. --- a/nspr/pr/include/md/_linux.cfg
  18. +++ b/nspr/pr/include/md/_linux.cfg
  19. @@ -499,7 +499,7 @@
  20. #elif defined(__mips__)
  21. /* For _ABI64 */
  22. -#include <sgidefs.h>
  23. +#include <asm/sgidefs.h>
  24. #ifdef __MIPSEB__
  25. #define IS_BIG_ENDIAN 1
  26. --
  27. 2.25.1