# HG changeset patch # User Ruslan Ermilov # Date 1427368506 -10800 # Node ID f737e406aa681a24074b3a792c01c864afe750ee # Parent 7bdd34cd27114e7376c9e53c815b51108f94be89 Core: guard against spinlock usage without atomic ops. The new thread pools code uses spinlocks. diff --git a/src/core/ngx_spinlock.c b/src/core/ngx_spinlock.c --- a/src/core/ngx_spinlock.c +++ b/src/core/ngx_spinlock.c @@ -42,7 +42,7 @@ ngx_spinlock(ngx_atomic_t *lock, ngx_ato #else -#if (NGX_OLD_THREADS) +#if (NGX_THREADS) #error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !