pkgsrc/x11/qt5-qtdeclarative/patches/patch-src_qml_jsruntime_qv4engine.cpp
adam cac0eff1be Changes 5.4.0:
Chromium-based browser engine Qt WebEngine
Qt WebView for showing web content using the native OS web engine on mobile
Full support on Qt for Windows Store Apps, including WinRT and Windows Phone 8.1
Improved Compliance with iOS 8 and Xcode 6
Improved OS X 10.10 ‘Yosemite’ support and new Mac AppStore signing
High-DPI support for Windows and OS X
Dynamic GL switching between OpenGL and ANGLE on Windows
Mix OpenGL and Qt Quick with QOpenGLWidget
Android Look-and-Feel for Qt Quick Controls
Qt Creator 3.3 with new Qt Quick Designer
Bluetooth now supports BlueZ5 with tech preview on Bluetooth LE
2014-12-30 17:23:45 +00:00

25 lines
848 B
C++

$NetBSD: patch-src_qml_jsruntime_qv4engine.cpp,v 1.1 2014/12/30 17:23:46 adam Exp $
Get stack address/size on SunOS.
--- src/qml/jsruntime/qv4engine.cpp.orig 2014-09-11 10:48:29.000000000 +0000
+++ src/qml/jsruntime/qv4engine.cpp
@@ -118,11 +118,17 @@ quintptr getStackLimit()
pthread_attr_t attr;
#if HAVE(PTHREAD_NP_H) && OS(FREEBSD)
if (pthread_attr_get_np(pthread_self(), &attr) == 0) {
-#else
+#elif !OS(SOLARIS)
if (pthread_getattr_np(pthread_self(), &attr) == 0) {
#endif
size_t stackSize = 0;
+#if OS(SOLARIS)
+ pthread_attr_init(&attr);
+ pthread_attr_getstackaddr(&attr, &stackBottom);
+ pthread_attr_getstacksize(&attr, &stackSize);
+#else
pthread_attr_getstack(&attr, &stackBottom, &stackSize);
+#endif
pthread_attr_destroy(&attr);
# if defined(Q_OS_ANDROID)