blob: 76b5bbce099728acfecc4b153aa8d372b0a28add (
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
26
27
28
29
30
31
|
$NetBSD: patch-bf,v 1.5 2012/04/28 16:56:58 ryoon Exp $
--- mozilla/js/src/jsnativestack.cpp.orig 2012-04-20 22:40:08.000000000 +0000
+++ mozilla/js/src/jsnativestack.cpp
@@ -50,10 +50,16 @@
#elif defined(XP_MACOSX) || defined(DARWIN) || defined(XP_UNIX)
# include <pthread.h>
-# if defined(__FreeBSD__) || defined(__OpenBSD__)
+# if defined(__OpenBSD__) || defined(__DragonFly__)
# include <pthread_np.h>
# endif
+# if defined(__FreeBSD__)
+_Pragma("GCC visibility push(default)")
+# include <pthread_np.h>
+_Pragma("GCC visibility pop")
+# endif
+
#else
# error "Unsupported platform"
@@ -145,7 +151,7 @@ GetNativeStackBaseImpl()
pthread_attr_init(&sattr);
# if defined(__OpenBSD__)
stack_t ss;
-# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(NETBSD)
+# elif defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(__DragonFly__) || defined(NETBSD) || defined(__NetBSD__) /* XXX tnn not sure why NETBSD isn't defined, it looks like it should be ... */
/* e.g. on FreeBSD 4.8 or newer, neundorf@kde.org */
pthread_attr_get_np(thread, &sattr);
# else
|