bug 545183 - formattm test crashes in strftime call on Android. Patch by Alex Pakhotin <alexp@mozilla.com>, r=me NSPR_HEAD_20100330
authorted.mielczarek%gmail.com
Tue, 30 Mar 2010 19:15:26 +0000
changeset 4226 ccd565638b57179f62bd6c429226a7d11c7d9dd8
parent 4225 430724aee5d4dfe953f98da792e1ce72a262fc34
child 4227 9e60472138a9efe6bfcf7ebcf5f4176e42b0f7da
push idunknown
push userunknown
push dateunknown
reviewersme
bugs545183
bug 545183 - formattm test crashes in strftime call on Android. Patch by Alex Pakhotin <alexp@mozilla.com>, r=me
pr/src/misc/prtime.c
--- a/pr/src/misc/prtime.c
+++ b/pr/src/misc/prtime.c
@@ -1723,17 +1723,17 @@ PR_FormatTime(char *buf, int buflen, con
 
         /*
          * On some platforms, for example SunOS 4, struct tm has two
          * additional fields: tm_zone and tm_gmtoff.
          */
 
 #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
         || defined(NETBSD) || defined(OPENBSD) || defined(FREEBSD) \
-        || defined(DARWIN) || defined(SYMBIAN)
+        || defined(DARWIN) || defined(SYMBIAN) || defined(ANDROID)
         a.tm_zone = NULL;
         a.tm_gmtoff = tm->tm_params.tp_gmt_offset +
                       tm->tm_params.tp_dst_offset;
 #endif
     } else {
         ap = NULL;
     }