aboutsummaryrefslogtreecommitdiffstats
path: root/testing/litespeed/ls_lock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/litespeed/ls_lock.patch')
-rw-r--r--testing/litespeed/ls_lock.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/litespeed/ls_lock.patch b/testing/litespeed/ls_lock.patch
new file mode 100644
index 0000000000..a41b14cbb9
--- /dev/null
+++ b/testing/litespeed/ls_lock.patch
@@ -0,0 +1,33 @@
+--- a/include/lsr/ls_lock.h
++++ b/include/lsr/ls_lock.h
+@@ -52,16 +52,9 @@
+ extern "C" {
+ #endif
+
+-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__) \
+- || defined(__FreeBSD__ ) || defined(__NetBSD__) || defined(__OpenBSD__)
+-#define USE_F_MUTEX
+-#define USE_MUTEX_ADAPTIVE
+-
+-#else
+ #undef USE_F_MUTEX
+ #define USE_MUTEX_LOCK
+
+-#endif
+ #define USE_ATOMIC_SPIN
+
+ #define MAX_FUTEX_SPINCNT 10
+--- a/src/lsr/ls_lock.c
++++ b/src/lsr/ls_lock.c
+@@ -79,11 +79,7 @@
+ #else /* defined(USE_MUTEX_ADAPTIVE) */
+ /* pthread_mutexattr_settype(&myAttr, PTHREAD_MUTEX_NORMAL); */
+ pthread_mutexattr_settype(&myAttr,
+-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__gnu_linux__)
+- PTHREAD_MUTEX_ERRORCHECK_NP
+-#else /* defined(linux) */
+ PTHREAD_MUTEX_ERRORCHECK
+-#endif /* defined(linux) */
+ );
+ #endif /* defined(USE_MUTEX_ADAPTIVE) */
+ /* pthread_mutexattr_settype(&myAttr, PTHREAD_MUTEX_RECURSIVE); */