https://bugs.webkit.org/show_bug.cgi?id=79045
Patch by Pino Toscano <pino@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.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108279
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-20 Pino Toscano <pino@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 <barraclough@apple.com>
Unreviewed windows build fix.
#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
|| OS(ANDROID) \
|| OS(DARWIN) \
|| OS(FREEBSD) \
+ || OS(HURD) \
|| OS(LINUX) \
|| OS(NETBSD) \
|| OS(OPENBSD) \
#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>