mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 16:12:22 +01:00
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).
41 lines
783 B
Diff
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__)
|
|
|