libgit2/libgit2-0.18.0-non-x86.patch
Dan Horák 5ba73998c3 - Add htonl() and friends declarations on non-x86 arches
- Rebuilt with fixed libxdiff for big endian arches
2013-06-19 11:20:15 +02:00

15 lines
415 B
Diff

diff -up libgit2-0.18.0/src/bswap.h.non-x86 libgit2-0.18.0/src/bswap.h
--- libgit2-0.18.0/src/bswap.h.non-x86 2013-06-19 10:01:31.000000000 +0200
+++ libgit2-0.18.0/src/bswap.h 2013-06-19 10:01:50.000000000 +0200
@@ -76,6 +76,10 @@ GIT_INLINE(uint16_t) default_swab16(uint
#define bswap32(x) _byteswap_ulong(x)
#define bswap16(x) _byteswap_ushort(x)
+#else
+
+#include <arpa/inet.h>
+
#endif
#ifdef bswap32