patch-libexfat_platform_h 699 B

1234567891011121314151617181920
  1. $OpenBSD: patch-libexfat_platform_h,v 1.1 2016/08/06 06:53:44 landry Exp $
  2. Unbreak on little-endian archs
  3. --- libexfat/platform.h.orig Sat Aug 6 08:50:22 2016
  4. +++ libexfat/platform.h Sat Aug 6 08:50:40 2016
  5. @@ -49,9 +49,9 @@
  6. #elif defined(__FreeBSD__) || defined(__DragonFlyBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
  7. #include <sys/endian.h>
  8. -#define exfat_bswap16(x) bswap16(x)
  9. -#define exfat_bswap32(x) bswap32(x)
  10. -#define exfat_bswap64(x) bswap64(x)
  11. +#define exfat_bswap16(x) swap16(x)
  12. +#define exfat_bswap32(x) swap32(x)
  13. +#define exfat_bswap64(x) swap64(x)
  14. #define EXFAT_BYTE_ORDER _BYTE_ORDER
  15. #define EXFAT_LITTLE_ENDIAN _LITTLE_ENDIAN
  16. #define EXFAT_BIG_ENDIAN _BIG_ENDIAN