packages/net/gnunet/patches/010-endian.patch
Daniel Golle 6d49ad9e5c
gnunet: update to version 0.17.5
Beware that switching to the new major version 0.17.x results in
incompatibility with clients still running 0.16.x.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-09-07 22:57:01 +01:00

18 lines
553 B
Diff

--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -154,7 +154,6 @@ enum GNUNET_GenericReturnValue
* Endian operations
*/
-#if __BYTE_ORDER == __LITTLE_ENDIAN
#ifdef HAVE_BYTESWAP_H
#define BYTE_SWAP_16(x) bswap_16 (x)
#define BYTE_SWAP_32(x) bswap_32 (x)
@@ -174,6 +173,7 @@ enum GNUNET_GenericReturnValue
56))
#endif
+#if __BYTE_ORDER == __LITTLE_ENDIAN
#define GNUNET_htobe16(x) BYTE_SWAP_16 (x)
#define GNUNET_htole16(x) (x)
#define GNUNET_be16toh(x) BYTE_SWAP_16 (x)