0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 02:26:34 +00:00
termux-packages/packages/blade/src-blade_file.c.patch
2023-02-01 02:03:51 +00:00

19 lines
393 B
Diff

--- a/src/blade_file.c
+++ b/src/file.c
@@ -23,6 +23,15 @@
#endif /* ifdef HAVE_SYS_TIME_H */
#include <time.h>
+#ifdef __ANDROID__
+#undef st_atimespec
+#define st_atimespec st_atim
+#undef st_mtimespec
+#define st_mtimespec st_mtim
+#undef st_ctimespec
+#define st_ctimespec st_ctim
+#endif
+
#ifdef _WIN32
/* Symbolic links aren't really a 'thing' on Windows, so just use plain-old