Commit 6d25dbdc5c3924336f61bc6091df64821acb95f2

Edward Thomson 2020-03-01T15:57:24

Merge pull request #5426 from pks-t/pks/freebsd-htobe64 deps: ntlmclient: fix htonll on big endian FreeBSD

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h
index 43bc865..555fa3f 100644
--- a/deps/ntlmclient/compat.h
+++ b/deps/ntlmclient/compat.h
@@ -32,7 +32,7 @@
 #elif defined(__FreeBSD__)
 /* See man page bwaps64(9) */
 # include <sys/endian.h>
-# define htonll bswap64
+# define htonll htobe64
 #elif defined(sun) || defined(__sun)
 /* See man page byteorder(3SOCKET) */
 # include <sys/types.h>