summaryrefslogtreecommitdiffstats
path: root/graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++')
-rw-r--r--graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++37
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++ b/graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++
new file mode 100644
index 000000000..1991714a0
--- /dev/null
+++ b/graphics/osg-devel/files/patch-src-OpenThreads-pthreads-PThread.c++
@@ -0,0 +1,37 @@
+--- src/OpenThreads/pthreads/PThread.c++.orig 2009-11-20 13:27:43.000000000 +0300
++++ src/OpenThreads/pthreads/PThread.c++ 2009-12-15 20:26:51.000000000 +0300
+@@ -21,6 +21,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <pthread.h>
++#include <pthread_np.h>
+ #include <limits.h>
+
+ #if defined __linux || defined __sun || defined __APPLE__
+@@ -123,7 +124,7 @@
+ #if defined(__sgi)
+ pthread_setrunon_np( pd->cpunum );
+ #elif defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
+- cpu_set_t cpumask;
++ cpuset_t cpumask;
+ CPU_ZERO( &cpumask );
+ CPU_SET( pd->cpunum, &cpumask );
+
+@@ -539,7 +540,7 @@
+
+ if (pd->isRunning && Thread::CurrentThread()==this)
+ {
+- cpu_set_t cpumask;
++ cpuset_t cpumask;
+ CPU_ZERO( &cpumask );
+ CPU_SET( pd->cpunum, &cpumask );
+ #if defined(HAVE_PTHREAD_SETAFFINITY_NP)
+@@ -969,7 +970,7 @@
+ else
+ {
+ #if defined(HAVE_PTHREAD_SETAFFINITY_NP) || defined(HAVE_THREE_PARAM_SCHED_SETAFFINITY) || defined(HAVE_TWO_PARAM_SCHED_SETAFFINITY)
+- cpu_set_t cpumask;
++ cpuset_t cpumask;
+ CPU_ZERO( &cpumask );
+ CPU_SET( cpunum, &cpumask );
+