librash: Include <sys/endian.h> for byte order
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 13 Apr 2017 13:09:14 +0000 (15:09 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 13 Apr 2017 13:09:14 +0000 (15:09 +0200)
packages/librhash/librhash-byte_order.h.patch [new file with mode: 0644]

diff --git a/packages/librhash/librhash-byte_order.h.patch b/packages/librhash/librhash-byte_order.h.patch
new file mode 100644 (file)
index 0000000..493ca45
--- /dev/null
@@ -0,0 +1,13 @@
+--- ../RHash-1.3.4/librhash/byte_order.h       2016-11-06 21:12:16.000000000 +0100
++++ ./librhash/byte_order.h    2017-04-13 15:01:29.364785379 +0200
+@@ -12,6 +12,10 @@
+ # include <endian.h>
+ #endif
++#ifdef __ANDROID__
++# include <sys/endian.h>
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif