Unverified Commit a5eb7e02 by Edward Thomson Committed by GitHub

Merge pull request #5612 from mmuman/haiku

deps: ntlmclient: fix htonll for Haiku
parents 8e3f8823 92913621
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
# include <stdbool.h> # include <stdbool.h>
#endif #endif
#ifdef __linux__ #if defined(_WIN32) || defined(__APPLE__)
/* winsock and macOS > 10.9 have htonll already */
#elif defined(__linux__)
/* See man page endian(3) */ /* See man page endian(3) */
# include <endian.h> # include <endian.h>
# define htonll htobe64 # define htonll htobe64
...@@ -46,6 +48,11 @@ ...@@ -46,6 +48,11 @@
# define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32)) # define htonll(x) ((((uint64_t)htonl(x)) << 32) + htonl((uint64_t)(x) >> 32))
# endif # endif
# endif # endif
#elif defined(__HAIKU__)
# include <ByteOrder.h>
# define htonll B_HOST_TO_BENDIAN_INT64
#else
# error "Please implement htonll for your platform"
#endif #endif
#ifndef MIN #ifndef MIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment