Title: [108279] trunk/Source/_javascript_Core
Revision
108279
Author
commit-qu...@webkit.org
Date
2012-02-20 18:12:24 -0800 (Mon, 20 Feb 2012)

Log Message

Does not build on GNU Hurd
https://bugs.webkit.org/show_bug.cgi?id=79045

Patch by Pino Toscano <p...@debian.org> on 2012-02-20
Reviewed by Gustavo Noronha Silva.

* wtf/Platform.h: define WTF_OS_HURD.
* wtf/ThreadIdentifierDataPthreads.cpp: adds a band-aid fix
for the lack of PTHREAD_KEYS_MAX definition, with a value which
should not cause issues.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (108278 => 108279)


--- trunk/Source/_javascript_Core/ChangeLog	2012-02-21 02:04:29 UTC (rev 108278)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-02-21 02:12:24 UTC (rev 108279)
@@ -1,3 +1,15 @@
+2012-02-20  Pino Toscano  <p...@debian.org>
+
+        Does not build on GNU Hurd
+        https://bugs.webkit.org/show_bug.cgi?id=79045
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * wtf/Platform.h: define WTF_OS_HURD.
+        * wtf/ThreadIdentifierDataPthreads.cpp: adds a band-aid fix
+        for the lack of PTHREAD_KEYS_MAX definition, with a value which
+        should not cause issues.
+
 2012-02-20  Gavin Barraclough  <barraclo...@apple.com>
 
         Unreviewed windows build fix.

Modified: trunk/Source/_javascript_Core/wtf/Platform.h (108278 => 108279)


--- trunk/Source/_javascript_Core/wtf/Platform.h	2012-02-21 02:04:29 UTC (rev 108278)
+++ trunk/Source/_javascript_Core/wtf/Platform.h	2012-02-21 02:12:24 UTC (rev 108279)
@@ -351,6 +351,11 @@
 #define WTF_OS_FREEBSD 1
 #endif
 
+/* OS(HURD) - GNU/Hurd */
+#ifdef __GNU__
+#define WTF_OS_HURD 1
+#endif
+
 /* OS(LINUX) - Linux */
 #ifdef __linux__
 #define WTF_OS_LINUX 1
@@ -394,6 +399,7 @@
     || OS(ANDROID)          \
     || OS(DARWIN)           \
     || OS(FREEBSD)          \
+    || OS(HURD)             \
     || OS(LINUX)            \
     || OS(NETBSD)           \
     || OS(OPENBSD)          \

Modified: trunk/Source/_javascript_Core/wtf/ThreadIdentifierDataPthreads.cpp (108278 => 108279)


--- trunk/Source/_javascript_Core/wtf/ThreadIdentifierDataPthreads.cpp	2012-02-21 02:04:29 UTC (rev 108278)
+++ trunk/Source/_javascript_Core/wtf/ThreadIdentifierDataPthreads.cpp	2012-02-21 02:12:24 UTC (rev 108279)
@@ -36,8 +36,8 @@
 
 #include "Threading.h"
 
-#if OS(ANDROID)
-// PTHREAD_KEYS_MAX is not defined in bionic, so explicitly define it here.
+#if OS(ANDROID) || OS(HURD)
+// PTHREAD_KEYS_MAX is not defined in bionic nor in Hurd, so explicitly define it here.
 #define PTHREAD_KEYS_MAX 1024
 #else
 #include <limits.h>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to