Skip to content

Commit 49ce5e2

Browse files
committed
deps: ntlmclient: fix htonll for Haiku
Use B_HOST_TO_BENDIAN_INT64 for that.
1 parent c71321a commit 49ce5e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/ntlmclient/compat.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
# define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32))
4747
# endif
4848
# endif
49+
#elif defined(__HAIKU__)
50+
# include <ByteOrder.h>
51+
# define htonll B_HOST_TO_BENDIAN_INT64
4952
#endif
5053

5154
#ifndef MIN

0 commit comments

Comments
 (0)