0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 09:28:54 +00:00
termux-packages/packages/libowfat/scan-scan_iso8601.c.patch
2023-04-05 11:58:39 +09:00

12 lines
334 B
Diff

--- a/scan/scan_iso8601.c
+++ b/scan/scan_iso8601.c
@@ -51,7 +51,7 @@
#else
x.tm_wday=x.tm_yday=x.tm_isdst=x.tm_gmtoff=0;
#endif
-#if defined(__dietlibc__) || defined(__GLIBC__)
+#if defined(__dietlibc__) || defined(__GLIBC__) || defined(__ANDROID__)
t->tv_sec=timegm(&x);
#elif defined(__MINGW32__)
t->tv_sec=mktime(&x);