summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qt3-libs/patches')
-rw-r--r--x11/qt3-libs/patches/patch-aa13
-rw-r--r--x11/qt3-libs/patches/patch-ad28
2 files changed, 28 insertions, 13 deletions
diff --git a/x11/qt3-libs/patches/patch-aa b/x11/qt3-libs/patches/patch-aa
deleted file mode 100644
index 062011360ef..00000000000
--- a/x11/qt3-libs/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2002/05/04 13:30:10 drochner Exp $
-
---- Makefile.orig Mon Mar 18 05:58:44 2002
-+++ Makefile Fri May 3 17:38:21 2002
-@@ -63,7 +63,7 @@
- cd plugins/src && $(MAKE) uninstall
- plugins-install: sub-plugins
- cd plugins/src && $(MAKE) install
--sub-plugins: sub-src .qmake.cache FORCE
-+sub-plugins: .qmake.cache FORCE
- cd plugins/src && $(MAKE)
-
- #tutorials
diff --git a/x11/qt3-libs/patches/patch-ad b/x11/qt3-libs/patches/patch-ad
new file mode 100644
index 00000000000..c00ab0b972f
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-ad
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1 2002/05/29 19:09:56 skrll Exp $
+
+--- src/kernel/qthread_unix.cpp.orig Fri May 24 16:43:12 2002
++++ src/kernel/qthread_unix.cpp
+@@ -87,6 +87,7 @@
+ // helpers
+ #define Q_THREAD_SELF() pthread_self()
+ #define Q_THREAD_EXIT(a) pthread_exit((a))
++#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
+ #define Q_THREAD_CREATE(a) pthread_attr_t attr; \
+ pthread_attr_init(&attr); \
+ pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); \
+@@ -94,6 +95,15 @@
+ (a) = pthread_create(&thread_id, &attr, start_thread, \
+ (void *) that); \
+ pthread_attr_destroy(&attr);
++#else
++#define Q_THREAD_CREATE(a) pthread_attr_t attr; \
++ pthread_attr_init(&attr); \
++ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); \
++ (a) = pthread_create(&thread_id, &attr, start_thread, \
++ (void *) that); \
++ pthread_attr_destroy(&attr);
++#endif
++
+ #endif // Q_OS_SOLARIS
+
+