aboutsummaryrefslogtreecommitdiffstats
path: root/testing/litespeed/thread.patch
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-02-21 02:43:04 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-02-22 11:29:39 +0000
commitfa2ced42fee209bf3a035c8aa869c2020a783961 (patch)
tree1e2757dc5099e20c39c5e7df34382d7dd3242266 /testing/litespeed/thread.patch
parent11a8303416d4855e568bef08640e0b9c0e136406 (diff)
downloadaports-fa2ced42fee209bf3a035c8aa869c2020a783961.tar.bz2
aports-fa2ced42fee209bf3a035c8aa869c2020a783961.tar.xz
testing/litespeed: new aport
High-performance, lightweight, open source HTTP server with web-gui https://open.litespeedtech.com/
Diffstat (limited to 'testing/litespeed/thread.patch')
-rw-r--r--testing/litespeed/thread.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/litespeed/thread.patch b/testing/litespeed/thread.patch
new file mode 100644
index 0000000000..19efff0976
--- /dev/null
+++ b/testing/litespeed/thread.patch
@@ -0,0 +1,37 @@
+--- a/src/thread/thread.h
++++ b/src/thread/thread.h
+@@ -86,12 +86,6 @@
+
+ int timedJoin(void **pRetVal, struct timespec *timeout)
+ { return pthread_timedjoin_np(m_tid, pRetVal, timeout); }
+-
+- int attrSetAffinity(size_t cpusetsize, const cpu_set_t *cpuset)
+- { return pthread_attr_setaffinity_np(&m_attr, cpusetsize, cpuset); }
+-
+- int attrGetAffinity(size_t cpusetsize, cpu_set_t *pCpuSet)
+- { return pthread_attr_getaffinity_np(&m_attr, cpusetsize, pCpuSet); }
+ #endif
+
+ int attrSetDetachState(int detachstate)
+--- a/src/thread/pthreadmutex.cpp
++++ b/src/thread/pthreadmutex.cpp
+@@ -16,19 +16,6 @@
+ * along with this program. If not, see http://www.gnu.org/licenses/. *
+ *****************************************************************************/
+ #include "pthreadmutex.h"
+-#if (defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__)) && !defined( NDEBUG )
+
+-#ifndef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
+-# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
+- {0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __LOCK_INITIALIZER}
+-#endif
+-
+-pthread_mutex_t PThreadMutex::s_proto =
+- PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;
+-
+-#else
+-
+ pthread_mutex_t PThreadMutex::s_proto = PTHREAD_MUTEX_INITIALIZER;
+-
+-#endif
+