diff options
Diffstat (limited to 'www/nginx')
-rw-r--r-- | www/nginx/Makefile | 1 | ||||
-rw-r--r-- | www/nginx/files/patch-src-os-unix-ngx_atomic.h | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 323e928b40ce..8c32e1b4fd5b 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -7,6 +7,7 @@ PORTNAME= nginx PORTVERSION= 0.3.6 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://sysoev.ru/nginx/ MASTER_SITES+= ${MASTER_SITE_LOCAL} diff --git a/www/nginx/files/patch-src-os-unix-ngx_atomic.h b/www/nginx/files/patch-src-os-unix-ngx_atomic.h new file mode 100644 index 000000000000..6dc60f5f5515 --- /dev/null +++ b/www/nginx/files/patch-src-os-unix-ngx_atomic.h @@ -0,0 +1,22 @@ +--- src/os/unix/ngx_atomic.h.orig Wed Oct 26 11:17:58 2005 ++++ src/os/unix/ngx_atomic.h Wed Oct 26 11:18:36 2005 +@@ -154,7 +154,7 @@ + ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old, + ngx_atomic_uint_t set) + { +- if (*lock == old { ++ if (*lock == old) { + *lock = set; + return 1; + } +@@ -174,8 +174,9 @@ + return old; + } + +-#endif ++#define ngx_memory_barrier() + ++#endif + + void ngx_spinlock(ngx_atomic_t *lock, ngx_uint_t spin); + |