summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2020-08-21 17:34:57 +0200
committerFrançois Revol <revol@free.fr>2020-08-21 17:34:57 +0200
commit49ce5e295b9d95e6bc4084f91706309d1f1f0bb7 (patch)
treec0205c7e0cc225f6e471632a2e61627bb4639d59 /deps
parentc71321a099373753c22055921c8f538afed5ebb6 (diff)
downloadlibgit2-49ce5e295b9d95e6bc4084f91706309d1f1f0bb7.tar.gz
deps: ntlmclient: fix htonll for Haiku
Use B_HOST_TO_BENDIAN_INT64 for that.
Diffstat (limited to 'deps')
-rw-r--r--deps/ntlmclient/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h
index f4d859aec..8093e9e94 100644
--- a/deps/ntlmclient/compat.h
+++ b/deps/ntlmclient/compat.h
@@ -46,6 +46,9 @@
# define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32))
# endif
# endif
+#elif defined(__HAIKU__)
+# include <ByteOrder.h>
+# define htonll B_HOST_TO_BENDIAN_INT64
#endif
#ifndef MIN