020-fix_pieusb.patch 452 B

12345678910111213141516
  1. --- a/backend/pieusb_buffer.c
  2. +++ b/backend/pieusb_buffer.c
  3. @@ -104,11 +104,13 @@
  4. /* When creating the release backend, make complains about unresolved external
  5. * le16toh, although it finds the include <endian.h> */
  6. +#ifndef le16toh
  7. #if __BYTE_ORDER == __LITTLE_ENDIAN
  8. #define le16toh(x) (x)
  9. #else
  10. #define le16toh(x) __bswap_16 (x)
  11. #endif
  12. +#endif
  13. static void buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment);