diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-02-21 02:43:04 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-02-22 11:29:39 +0000 |
commit | fa2ced42fee209bf3a035c8aa869c2020a783961 (patch) | |
tree | 1e2757dc5099e20c39c5e7df34382d7dd3242266 /testing/litespeed/ls_lock.patch | |
parent | 11a8303416d4855e568bef08640e0b9c0e136406 (diff) | |
download | aports-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/ls_lock.patch')
-rw-r--r-- | testing/litespeed/ls_lock.patch | 33 |
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); */ |