changeset 1100:01884449985f

fix building on platforms with non-supported atomic operations
author Igor Sysoev <igor@sysoev.ru>
date Sun, 11 Feb 2007 07:49:12 +0000
parents 04a8b485447d
children 2d47c7f22f7c
files src/core/ngx_cycle.c src/core/ngx_shmtx.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_cycle.c	Fri Feb 09 14:02:42 2007 +0000
+++ b/src/core/ngx_cycle.c	Sun Feb 11 07:49:12 2007 +0000
@@ -901,7 +901,8 @@
 #if !(NGX_HAVE_ATOMIC_OPS)
     ngx_fd_t  fd;
 
-    fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN);
+    fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
+                       NGX_FILE_DEFAULT_ACCESS);
 
     if (fd == NGX_INVALID_FILE) {
         ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
--- a/src/core/ngx_shmtx.c	Fri Feb 09 14:02:42 2007 +0000
+++ b/src/core/ngx_shmtx.c	Sun Feb 11 07:49:12 2007 +0000
@@ -35,7 +35,8 @@
         ngx_shmtx_destory(mtx);
     }
 
-    mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN);
+    mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
+                            NGX_FILE_DEFAULT_ACCESS);
 
     if (mtx->fd == NGX_INVALID_FILE) {
         ngx_log_error(NGX_LOG_EMERG, ngx_cycle->log, ngx_errno,