lua-language-server: fix build on 32-bit arches (#17066)

This commit is contained in:
Uchiha Kakashi 2023-06-23 18:28:09 +08:00 committed by GitHub
parent 3f785e494d
commit 8fa70727d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- 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