blob: 369f195622bf66aa5cb2b6da44a27f3991020631 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-at,v 1.2 2008/09/17 12:23:01 joerg Exp $
--- src/3rdparty/webkit/JavaScriptCore/kjs/collector.cpp.orig 2008-04-28 15:11:16.000000000 +0200
+++ src/3rdparty/webkit/JavaScriptCore/kjs/collector.cpp
@@ -72,10 +72,9 @@ extern int *__libc_stack_end;
#include <thread.h>
#endif
+#include <pthread.h>
#if HAVE(PTHREAD_NP_H)
#include <pthread_np.h>
-#else
-#include <pthread.h>
#endif
#endif
@@ -347,7 +346,7 @@ static inline void* currentThreadStackBa
if (stackBase == 0 || thread != stackThread) {
pthread_attr_t sattr;
pthread_attr_init(&sattr);
-#if HAVE(PTHREAD_NP_H)
+#if HAVE(PTHREAD_NP_H) || defined(__NetBSD__)
// e.g. on FreeBSD 5.4, neundorf@kde.org
pthread_attr_get_np(thread, &sattr);
#else
|