Fix timezone management in the C library
Define 'timezone' and 'daylight' global variables that are already
defined in <time.h>
Properly update the 'tm_gmtoff' field in 'struct tm' values.
diff --git a/libc/Android.mk b/libc/Android.mk
index 97f4011..a6f2c83 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -408,6 +408,14 @@
-DUSE_DL_PREFIX \
-DPOSIX_MISTAKE
+# these macro definitions are required to implement the
+# 'timezone' and 'daylight' global variables, as well as
+# properly update the 'tm_gmtoff' field in 'struct tm'.
+#
+libc_common_cflags += \
+ -DTM_GMTOFF=tm_gmtoff \
+ -DUSG_COMPAT=1
+
ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
libc_common_cflags += -DDEBUG
endif