mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 11:52:55 -04:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$NetBSD: patch-bf,v 1.1 2013/11/13 13:27:45 ryoon Exp $
|
|
|
|
--- mozilla/js/src/jsnativestack.cpp.orig 2012-08-25 00:31:13.000000000 +0000
|
|
+++ mozilla/js/src/jsnativestack.cpp
|
|
@@ -19,10 +19,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"
|
|
|
|
@@ -114,7 +120,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
|