pkgsrc-ng/x11/qt5-qtbase/patches/patch-qtwebkit_Source_WTF_wtf_ThreadIdentifierDataPthreads.cpp
2014-08-11 13:27:10 +02:00

20 lines
646 B
C++

$NetBSD: patch-qtwebkit_Source_WTF_wtf_ThreadIdentifierDataPthreads.cpp,v 1.1 2013/12/13 14:38:35 ryoon Exp $
* Add NetBSD support
--- qtwebkit/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp.orig 2013-11-27 01:01:20.000000000 +0000
+++ qtwebkit/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp
@@ -39,6 +39,12 @@
#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
+#elif OS(NETBSD)
+#include <limits.h>
+// PTHREAD_KEYS_MAX is not defined in 5.x
+#ifndef PTHREAD_KEYS_MAX
+#define PTHREAD_KEYS_MAX 256
+#endif
#else
#include <limits.h>
#endif