deps: ntlmclient: #error out on unknown platforms We explicitly pass win32 & macOS, although some old version might not have it.
diff --git a/deps/ntlmclient/compat.h b/deps/ntlmclient/compat.h
index 8093e9e..6e5ef64 100644
--- a/deps/ntlmclient/compat.h
+++ b/deps/ntlmclient/compat.h
@@ -21,7 +21,9 @@
# include <stdbool.h>
#endif
-#ifdef __linux__
+#if defined(_WIN32) || defined(__APPLE__)
+/* winsock and macOS > 10.9 have htonll already */
+#elif defined(__linux__)
/* See man page endian(3) */
# include <endian.h>
# define htonll htobe64
@@ -49,6 +51,8 @@
#elif defined(__HAIKU__)
# include <ByteOrder.h>
# define htonll B_HOST_TO_BENDIAN_INT64
+#else
+# error "Please implement htonll for your platform"
#endif
#ifndef MIN