[PATCH] Core: read/write locks are also required by the Stream module

Piotr Sikora piotrsikora at google.com
Sat Oct 24 23:26:30 UTC 2015


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1445649693 25200
#      Fri Oct 23 18:21:33 2015 -0700
# Node ID 903e6a14b17e9140ee88f671f1ba2293c512ab3b
# Parent  960c335482a516878355bd42b0c8cf58aa112703
Core: read/write locks are also required by the Stream module.

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r 960c335482a5 -r 903e6a14b17e src/core/ngx_rwlock.c
--- a/src/core/ngx_rwlock.c
+++ b/src/core/ngx_rwlock.c
@@ -111,7 +111,7 @@ ngx_rwlock_unlock(ngx_atomic_t *lock)
 
 #else
 
-#if (NGX_HTTP_UPSTREAM_ZONE)
+#if (NGX_HTTP_UPSTREAM_ZONE || NGX_STREAM_UPSTREAM_ZONE)
 
 #error ngx_atomic_cmp_set() is not defined!
 



More information about the nginx-devel mailing list