Commit 49ce5e295b9d95e6bc4084f91706309d1f1f0bb7

François Revol 2020-08-21T17:34:57

deps: ntlmclient: fix htonll for Haiku Use B_HOST_TO_BENDIAN_INT64 for that.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h
index f4d859a..8093e9e 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