From edb0c6ba64453b6827096debff056a14158e2d7e Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 26 Mar 2015 14:15:06 +0300 Subject: Core: guard against spinlock usage without atomic ops. The new thread pools code uses spinlocks. --- src/core/ngx_spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_spinlock.c') diff --git a/src/core/ngx_spinlock.c b/src/core/ngx_spinlock.c index 33477e2ee..9c93afaf1 100644 --- a/src/core/ngx_spinlock.c +++ b/src/core/ngx_spinlock.c @@ -42,7 +42,7 @@ ngx_spinlock(ngx_atomic_t *lock, ngx_atomic_int_t value, ngx_uint_t spin) #else -#if (NGX_OLD_THREADS) +#if (NGX_THREADS) #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined ! -- cgit