fix-musl-arm.patch 682 B

123456789101112131415161718192021
  1. --- ./hw/xfree86/common/compiler.h.orig
  2. +++ ./hw/xfree86/common/compiler.h
  3. @@ -721,7 +721,7 @@
  4. :"r"(val), "r"(addr), "i"(ASI_PL));
  5. }
  6. -#elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
  7. +#elif defined(__mips__) || (defined(__arm32__) && !defined(__GLIBC__))
  8. #if defined(__arm32__) || defined(__mips64)
  9. #define PORT_SIZE long
  10. #else
  11. @@ -996,7 +996,7 @@
  12. return xf86ReadMmio32Le((void *) ioBase, port);
  13. }
  14. -#elif defined(__arm__) && defined(__linux__)
  15. +#elif defined(__arm__) && defined(__GLIBC__)
  16. /* for Linux on ARM, we use the LIBC inx/outx routines */
  17. /* note that the appropriate setup via "ioperm" needs to be done */