mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 03:44:13 -04:00
18 lines
555 B
Plaintext
18 lines
555 B
Plaintext
$NetBSD: patch-ai,v 1.3 2012/10/30 12:46:30 drochner Exp $
|
|
|
|
--- Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp.orig 2012-04-24 01:38:21.000000000 +0000
|
|
+++ 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
|