diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-12-09 21:07:13 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-12-09 21:07:13 +0000 |
commit | 4dd43e1d9d65d659a8f4edc773a37de0eb190be1 (patch) | |
tree | 677be85d6f469ca92738c3dae6b4aaf35846b03a /graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp | |
parent | Document Ghostscript vulnerabilities. (diff) |
- Move graphics/osg to graphics/osg34 in preparation for update to 3.6
PR: 230442
Notes
Notes:
svn path=/head/; revision=519633
Diffstat (limited to 'graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp')
-rw-r--r-- | graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp b/graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp new file mode 100644 index 000000000000..eeaba23f077d --- /dev/null +++ b/graphics/osg34/files/patch-src-OpenThreads-pthreads-PThread.cpp @@ -0,0 +1,37 @@ +--- src/OpenThreads/pthreads/PThread.cpp.orig 2011-06-24 00:09:26.000000000 +0400 ++++ src/OpenThreads/pthreads/PThread.cpp 2012-03-05 05:57:02.886704932 +0400 +@@ -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__ || ANDROID +@@ -136,7 +137,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 ); + +@@ -569,7 +570,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) +@@ -1031,7 +1032,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 ); + #if defined(HAVE_PTHREAD_SETAFFINITY_NP) |