0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-13 03:00:31 +00:00
termux-packages/packages/lua-language-server/bee.lua-bee-net-endpoint.patch

14 lines
395 B
Diff

--- a/3rd/bee.lua/bee/net/endpoint.h.orig
+++ b/3rd/bee.lua/bee/net/endpoint.h
@@ -11,6 +11,10 @@
namespace bee::net {
#if defined(_WIN32)
using socklen_t = int;
+#elif defined(__ANDROID__) && !defined(__LP64__)
+ using socklen_t = std::int32_t;
+#elif defined(__ANDROID__) && defined(__LP64__)
+ using socklen_t = std::uint32_t;
#else
using socklen_t = unsigned int;
#endif