You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.6 KiB

  1. Description: Fix structure padding for mips64
  2. Author: Guillem Jover <guillem@debian.org>
  3. Forwarded: no
  4. Last-Update: 2014-07-23
  5. ---
  6. src/libaio.h | 5 ++++-
  7. 1 file changed, 4 insertions(+), 1 deletion(-)
  8. --- a/src/libaio.h
  9. +++ b/src/libaio.h
  10. @@ -53,7 +53,8 @@ typedef enum io_iocb_cmd {
  11. /* little endian, 32 bits */
  12. #if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \
  13. (defined(__sh__) && defined(__LITTLE_ENDIAN__)) || \
  14. - defined(__bfin__) || defined(__MIPSEL__) || \
  15. + defined(__bfin__) || \
  16. + (defined(__MIPSEL__) && !defined(__mips64)) || \
  17. defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \
  18. (defined(__GNUC__) && defined(__BYTE_ORDER__) && \
  19. __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4)
  20. @@ -63,6 +64,7 @@ typedef enum io_iocb_cmd {
  21. /* little endian, 64 bits */
  22. #elif defined(__ia64__) || defined(__x86_64__) || defined(__alpha__) || \
  23. + (defined(__mips64) && defined(__MIPSEL__)) || \
  24. (defined(__aarch64__) && defined(__AARCH64EL__)) || \
  25. (defined(__riscv) && __riscv_xlen == 64) || \
  26. (defined(__GNUC__) && defined(__BYTE_ORDER__) && \
  27. @@ -75,6 +77,7 @@ typedef enum io_iocb_cmd {
  28. #elif defined(__powerpc64__) || defined(__s390x__) || \
  29. (defined(__hppa__) && defined(__arch64__)) || \
  30. (defined(__sparc__) && defined(__arch64__)) || \
  31. + (defined(__mips64) && defined(__MIPSEB__)) || \
  32. (defined(__aarch64__) && defined(__AARCH64EB__)) || \
  33. (defined(__GNUC__) && defined(__BYTE_ORDER__) && \
  34. __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __SIZEOF_LONG__ == 8)