aports/main/nspr/fix-sgidefs-usage.patch
alpine-mips-patches d989793e64 main/nspr: fix build on mips* (sgidefs.h)
Use sgidefs.h from linux-headers and replace _ABI64 references with non-GCC
counterpart (_ABI64 is only defined with -mabi=64 thus -Wundef errors arise
in some dependent projects with -mabi=32).
2018-12-17 10:32:03 +00:00

41 lines
783 B
Diff

--- a/nspr/pr/include/md/_linux.cfg
+++ b/nspr/pr/include/md/_linux.cfg
@@ -498,8 +498,8 @@
#elif defined(__mips__)
-/* For _ABI64 */
-#include <sgidefs.h>
+/* For _MIPS_SIM_ABI64 */
+#include <asm/sgidefs.h>
#ifdef __MIPSEB__
#define IS_BIG_ENDIAN 1
@@ -511,7 +511,7 @@
#error "Unknown MIPS endianness."
#endif
-#if _MIPS_SIM == _ABI64
+#if _MIPS_SIM == _MIPS_SIM_ABI64
#define IS_64
@@ -555,7 +555,7 @@
#define PR_BYTES_PER_WORD_LOG2 3
#define PR_BYTES_PER_DWORD_LOG2 3
-#else /* _ABI64 */
+#else /* _MIPS_SIM_ABI64 */
#define PR_BYTES_PER_BYTE 1
#define PR_BYTES_PER_SHORT 2
@@ -597,7 +597,7 @@
#define PR_BYTES_PER_WORD_LOG2 2
#define PR_BYTES_PER_DWORD_LOG2 3
-#endif /* _ABI64 */
+#endif /* _MIPS_SIM_ABI64 */
#elif defined(__arm__)