$NetBSD: patch-ai,v 1.6 2015/09/26 10:16:38 leot Exp $ --- Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp.orig 2015-09-14 07:08:10.000000000 +0000 +++ Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp @@ -39,6 +39,12 @@ #if 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 +// PTHREAD_KEYS_MAX is not defined in 5.x +#ifndef PTHREAD_KEYS_MAX +#define PTHREAD_KEYS_MAX 256 +#endif #else #include #endif