X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/8aef3a59c9513f83200e575d9bdcb04c3251b268..f28423fffcac4e04889c9406147330f2fc5ab248:/packages/glib/glib-gtimezone.c.patch diff --git a/packages/glib/glib-gtimezone.c.patch b/packages/glib/glib-gtimezone.c.patch index 886298d5..916c019d 100644 --- a/packages/glib/glib-gtimezone.c.patch +++ b/packages/glib/glib-gtimezone.c.patch @@ -1,13 +1,17 @@ +Patch submitted at https://bugzilla.gnome.org/show_bug.cgi?id=771304 + diff -u -r ../glib-2.48.2/glib/gtimezone.c ./glib/gtimezone.c --- ../glib-2.48.2/glib/gtimezone.c 2016-08-17 12:07:29.000000000 -0400 +++ ./glib/gtimezone.c 2016-09-12 16:52:41.864974630 -0400 -@@ -43,6 +43,11 @@ +@@ -43,6 +43,13 @@ #include #endif +#ifdef __ANDROID__ ++#include +#include +#include ++#include +#endif + /** @@ -33,8 +37,8 @@ diff -u -r ../glib-2.48.2/glib/gtimezone.c ./glib/gtimezone.c + uint32_t offset, length, unused; + } __attribute__((packed)) entry; + ++ char sys_timezone[PROP_VALUE_MAX]; + if (identifier == NULL) { -+ char sys_timezone[PROP_VALUE_MAX]; + if (__system_property_get("persist.sys.timezone", sys_timezone) < 1) { + g_warning("__system_property_get(\"persist.sys.timezone\") failed\n"); + return NULL;