006_arches_mips_fix_padding.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. @@ -52,7 +52,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__)
  18. #define PADDED(x, y) x; unsigned y
  19. #define PADDEDptr(x, y) x; unsigned y
  20. @@ -60,6 +61,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. #define PADDED(x, y) x, y
  26. #define PADDEDptr(x, y) x
  27. @@ -69,6 +71,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. #define PADDED(x, y) unsigned y; x
  34. #define PADDEDptr(x,y) x