summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2013-05-20 08:02:40 +0000
committerXuefer <xuefer@gmail.com>2013-05-20 08:02:40 +0000
commit5ce96cff4ffb6713d09c4641b9a3257f424cd6d5 (patch)
tree5a7788f65175c905a674f76e633c141049253c21 /xcache
parent876859cc241ab1a56bc04613445ba5546a74358b (diff)
downloadxcache-5ce96cff4ffb6713d09c4641b9a3257f424cd6d5.tar.gz
xcache-5ce96cff4ffb6713d09c4641b9a3257f424cd6d5.zip
fixes #301: refix locking impl
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1245 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_lock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xcache/xc_lock.c b/xcache/xc_lock.c
index e2782fb..4a9266e 100644
--- a/xcache/xc_lock.c
+++ b/xcache/xc_lock.c
@@ -28,7 +28,7 @@
/* {{{ detect which lock is needed */
#if defined(XC_LOCK_NEED_TS) && defined(XC_LOCK_NEED_INTERPROCESS)
-# ifdef PTHREAD
+# ifdef PTHREADS
# define XC_LOCK_USE_PTHREAD
# ifndef _POSIX_THREAD_PROCESS_SHARED
# define XC_LOCK_USE_FCNTL
@@ -278,7 +278,6 @@ void xc_lock_destroy(xc_lock_t *lck) /* {{{ */
#ifdef XC_LOCK_USE_TSRM
tsrm_mutex_free(lck->tsrm_mutex);
- lck->tsrm_mutex = NULL;
#endif
#ifdef XC_LOCK_USE_FCNTL