mirror of
https://github.com/osfans/trime.git
synced 2026-11-08 01:16:38 +08:00
The original way is not vert reliable, especially for developers using Windows, it may offten lead to build failure.
15 lines
399 B
Diff
15 lines
399 B
Diff
diff --git a/lua5.4/liolib.c b/lua5.4/liolib.c
|
|
index b08397d..2815fa5 100644
|
|
--- a/lua5.4/liolib.c
|
|
+++ b/lua5.4/liolib.c
|
|
@@ -115,7 +115,8 @@ static int l_checkmode (const char *mode) {
|
|
|
|
#if !defined(l_fseek) /* { */
|
|
|
|
-#if defined(LUA_USE_POSIX) /* { */
|
|
+#if defined(LUA_USE_POSIX) && \
|
|
+ (!defined(ANDROID) || (defined(__LP64__) || ANDROID_PLATFORM >= 24)) /* { */
|
|
|
|
#include <sys/types.h>
|
|
|