Bug 77360

Summary: [BlackBerry] OS(QNX) also has TM_GMTOFF, TM_ZONE, and TIMEGM
Product: WebKit Reporter: Yong Li <yong.li.webkit>
Component: PlatformAssignee: Yong Li <yong.li.webkit>
Status: RESOLVED FIXED    
Severity: Minor CC: milian.wolff, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
the patch none

Description Yong Li 2012-01-30 13:00:11 PST
OS(QNX) should also define HAVE(TM_GMTOFF, TM_ZONE, and TIMEGM)
Comment 1 Yong Li 2012-01-30 13:06:56 PST
Created attachment 124585 [details]
the patch
Comment 2 Rob Buis 2012-01-30 13:12:30 PST
Comment on attachment 124585 [details]
the patch

Looks good.
Comment 3 WebKit Review Bot 2012-01-30 14:48:25 PST
Comment on attachment 124585 [details]
the patch

Clearing flags on attachment: 124585

Committed r106290: <http://trac.webkit.org/changeset/106290>
Comment 4 WebKit Review Bot 2012-01-30 14:48:29 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Milian Wolff 2012-06-13 07:50:02 PDT
can someone clarify how this is supposed to work, or which QNX version should support this?

For QNX6 I can only find timegm in nbutil.h which would also mean we need to link against nbutil.so to get that in.

As-Is the patch that has landed here breaks compilation of QtWebKit for QNX6 for me.
Comment 6 Yong Li 2012-06-13 08:11:57 PDT
(In reply to comment #5)
> can someone clarify how this is supposed to work, or which QNX version should support this?
> 
> For QNX6 I can only find timegm in nbutil.h which would also mean we need to link against nbutil.so to get that in.
> 
> As-Is the patch that has landed here breaks compilation of QtWebKit for QNX6 for me.

TIMEGM isn't important thing. We saw this issue. And it is fixed for playbook 2.x

You can just cherry-pick this patch:

commit 98aacd9c57a8f38261e9fa4554f2cc7e8343030c
Author: Ming Xie <mxie@rim.com>
Date:   Thu Feb 2 13:50:41 2012 -0500

    2012-02-02  Ming Xie  <mxie@rim.com>
    
            Disable HAVE_TIMEGM in *GR2.0* build only.
    
            Reviewed by Yong Li.
    
            * wtf/Platform.h:

# ===============================================
#   COMMIT DIFF(S)
# ===============================================

# ===============================================
#   Revision 1: webkit/98aacd9c57a8f38261e9fa4554f2cc7e8343030c
# ===============================================
98aacd9c57a8f38261e9fa4554f2cc7e8343030c
diff --git a/Source/JavaScriptCore/wtf/Platform.h b/Source/JavaScriptCore/wtf/Platform.h
index 2ef394a..f169fbf 100644
--- a/Source/JavaScriptCore/wtf/Platform.h
+++ b/Source/JavaScriptCore/wtf/Platform.h
@@ -673,8 +673,10 @@
     && !OS(ANDROID)
 #define HAVE_TM_GMTOFF 1
 #define HAVE_TM_ZONE 1
+#if !OS(QNX)
 #define HAVE_TIMEGM 1
 #endif
+#endif
 
 #if OS(DARWIN)