[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] libssh: include Android required define for ntohl
[Thread Prev] | [Thread Next]
- Subject: [PATCH] libssh: include Android required define for ntohl
- From: Petar Koretic <petar.koretic@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 16 Mar 2014 16:57:31 +0000
- To: libssh@xxxxxxxxxx
Hi. For Android ntohl is defined in sys/endian.h. I've also seen similiar reference and patch for Mac OS and mobile firefox here https://bugzilla.mozilla.org/show_bug.cgi?id=684139 It's not invasive but I expect you will want to do it your way and someone maybe knows a better way. Please let me know if there is something else that I should provide. Regards, Petar Signed-off-by: Petar Koretic <petar.koretic@xxxxxxxxxx> --- src/packet_cb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/packet_cb.c b/src/packet_cb.c index a10dd1a..07f4fa9 100644 --- a/src/packet_cb.c +++ b/src/packet_cb.c @@ -25,6 +25,10 @@ #include <stdlib.h> +#ifdef __ANDROID__ +#include "sys/endian.h" +#endif + #include "libssh/priv.h" #include "libssh/buffer.h" #include "libssh/crypto.h" -- 1.9.0
Archive administrator: postmaster@lists.cynapses.org