diff options
Diffstat (limited to 'user/opal-utils/musl.patch')
-rw-r--r-- | user/opal-utils/musl.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/opal-utils/musl.patch b/user/opal-utils/musl.patch new file mode 100644 index 000000000..5835935e8 --- /dev/null +++ b/user/opal-utils/musl.patch @@ -0,0 +1,36 @@ +--- skiboot-6.3.1/ccan/endian/endian.h.old 2019-05-10 06:50:45.000000000 +0000 ++++ skiboot-6.3.1/ccan/endian/endian.h 2019-06-04 07:57:14.416435679 +0000 +@@ -112,9 +112,9 @@ + #error "Unknown endian" + #elif HAVE_LITTLE_ENDIAN && HAVE_BIG_ENDIAN + #error "Can't compile for both big and little endian." +-#elif HAVE_LITTLE_ENDIAN ++#elif HAVE_LITTLE_ENDIAN && !defined(__BYTE_ORDER) + #define __BYTE_ORDER __LITTLE_ENDIAN +-#elif HAVE_BIG_ENDIAN ++#elif HAVE_BIG_ENDIAN && !defined(__BYTE_ORDER) + #define __BYTE_ORDER __BIG_ENDIAN + #endif + +--- skiboot-6.3.1/include/inttypes.h.old 2019-05-10 06:50:45.000000000 +0000 ++++ skiboot-6.3.1/include/inttypes.h 2019-06-04 08:07:42.108161539 +0000 +@@ -25,15 +25,15 @@ + + #include <stdint.h> + +-#ifndef __WORDSIZE +-/* If we don't have __WORDSIZE it means we're *certainly* building skiboot ++#ifndef __LONG_WIDTH__ ++/* If we don't have __LONG_WIDTH__ it means we're *certainly* building skiboot + * which will *ALWAYS* have a word size of 32bits. + * (unless someone goes and ports skiboot to something that isn't powerpc) + */ +-#define __WORDSIZE 32 ++#define __LONG_WIDTH__ 32 + #endif + +-#if __WORDSIZE == 64 ++#if __LONG_WIDTH__ == 64 + #define PRIu64 "lu" + #define PRIx64 "lx" + #else |