python/typeguard: update to 4.4.0
[oi-userland.git] / components / library / libmtp / patches / 01-bswap.patch
blob1c1e635024a93b4e9c95836212a60ed2cd517a9d
1 --- libmtp-1.1.8/src/gphoto2-endian.h.~1~ 2015-03-11 00:46:33.545905878 +0300
2 +++ libmtp-1.1.8/src/gphoto2-endian.h 2015-03-11 00:47:44.806166816 +0300
3 @@ -8,10 +8,17 @@
4 #include <arpa/inet.h>
6 /* Define generic byte swapping functions */
7 +#ifdef __sun
8 +#include <sys/byteorder.h>
9 +#define swap16(x) BSWAP_16(x)
10 +#define swap32(x) BSWAP_32(x)
11 +#define swap64(x) BSWAP_64(x)
12 +#else
13 #include <byteswap.h>
14 #define swap16(x) bswap_16(x)
15 #define swap32(x) bswap_32(x)
16 #define swap64(x) bswap_64(x)
17 +#endif
19 /* The byte swapping macros have the form: */
20 /* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */