Title: [125877] trunk/Source/WTF
Revision
125877
Author
[email protected]
Date
2012-08-17 03:23:09 -0700 (Fri, 17 Aug 2012)

Log Message

[Qt] QNX build fails due to missing timegm declaration
https://bugs.webkit.org/show_bug.cgi?id=93842

Patch by Milian Wolff <[email protected]> on 2012-08-17
Reviewed by Simon Hausmann.

On QNX, timegm is declared in nbutils.h and one must link against
nbutils to use it.

* WTF.pri:
* wtf/DateMath.cpp:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (125876 => 125877)


--- trunk/Source/WTF/ChangeLog	2012-08-17 10:05:38 UTC (rev 125876)
+++ trunk/Source/WTF/ChangeLog	2012-08-17 10:23:09 UTC (rev 125877)
@@ -1,3 +1,16 @@
+2012-08-17  Milian Wolff  <[email protected]>
+
+        [Qt] QNX build fails due to missing timegm declaration
+        https://bugs.webkit.org/show_bug.cgi?id=93842
+
+        Reviewed by Simon Hausmann.
+
+        On QNX, timegm is declared in nbutils.h and one must link against
+        nbutils to use it.
+
+        * WTF.pri:
+        * wtf/DateMath.cpp:
+
 2012-08-16  Kent Tamura  <[email protected]>
 
         Build fix for Chromium-mac.

Modified: trunk/Source/WTF/WTF.pri (125876 => 125877)


--- trunk/Source/WTF/WTF.pri	2012-08-17 10:05:38 UTC (rev 125876)
+++ trunk/Source/WTF/WTF.pri	2012-08-17 10:23:09 UTC (rev 125877)
@@ -31,3 +31,8 @@
     LIBS += -lwinmm
     LIBS += -lgdi32
 }
+
+qnx {
+    # required for timegm
+    LIBS += -lnbutil
+}

Modified: trunk/Source/WTF/wtf/DateMath.cpp (125876 => 125877)


--- trunk/Source/WTF/wtf/DateMath.cpp	2012-08-17 10:05:38 UTC (rev 125876)
+++ trunk/Source/WTF/wtf/DateMath.cpp	2012-08-17 10:23:09 UTC (rev 125877)
@@ -102,6 +102,11 @@
 #include <sys/timeb.h>
 #endif
 
+#if OS(QNX)
+// qnx6 defines timegm in nbutil.h
+#include <nbutil.h>
+#endif
+
 using namespace WTF;
 
 namespace WTF {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to