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