- Add ppc64le-support.patch: * add support for powerpc64le-linux OBS-URL: https://build.opensuse.org/request/show/210800 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nspr?expand=0&rev=60
33 lines
699 B
Diff
33 lines
699 B
Diff
Index: nspr-4.10.2/pr/include/md/_linux.cfg
|
|
===================================================================
|
|
--- nspr-4.10.2.orig/pr/include/md/_linux.cfg
|
|
+++ nspr-4.10.2/pr/include/md/_linux.cfg
|
|
@@ -29,8 +29,13 @@
|
|
|
|
#ifdef __powerpc64__
|
|
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define IS_LITTLE_ENDIAN 1
|
|
+#undef IS_BIG_ENDIAN
|
|
+#else
|
|
#undef IS_LITTLE_ENDIAN
|
|
#define IS_BIG_ENDIAN 1
|
|
+#endif
|
|
#define IS_64
|
|
|
|
#define PR_BYTES_PER_BYTE 1
|
|
@@ -75,8 +80,13 @@
|
|
|
|
#elif defined(__powerpc__)
|
|
|
|
+#ifdef __LITTLE_ENDIAN__
|
|
+#define IS_LITTLE_ENDIAN 1
|
|
+#undef IS_BIG_ENDIAN
|
|
+#else
|
|
#undef IS_LITTLE_ENDIAN
|
|
#define IS_BIG_ENDIAN 1
|
|
+#endif
|
|
|
|
#define PR_BYTES_PER_BYTE 1
|
|
#define PR_BYTES_PER_SHORT 2
|