]> git.kaiwu.me - nginx.git/commitdiff
condition declarations inside blocks update missed in r1705
authorIgor Sysoev <igor@sysoev.ru>
Sat, 29 Dec 2007 13:55:10 +0000 (13:55 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 29 Dec 2007 13:55:10 +0000 (13:55 +0000)
src/http/modules/ngx_http_dav_module.c

index 2d555c556a2db00efebf69f199c81e0dcf6c9349..b532135907bc0950f6af3dbf40df9d19785b7bc7 100644 (file)
@@ -799,9 +799,6 @@ ngx_http_dav_copy_dir_time(ngx_tree_ctx_t *ctx, ngx_str_t *path)
     u_char                   *p, *dir;
     size_t                    len;
     ngx_http_dav_copy_ctx_t  *copy;
-#if (WIN32)
-    ngx_fd_t                  fd;
-#endif
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ctx->log, 0,
                    "http copy dir time: \"%s\"", path->data);
@@ -821,7 +818,9 @@ ngx_http_dav_copy_dir_time(ngx_tree_ctx_t *ctx, ngx_str_t *path)
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ctx->log, 0,
                    "http copy dir time to: \"%s\"", dir);
 
-#if (WIN32)
+#if (NGX_WIN32)
+    {
+    ngx_fd_t  fd;
 
     fd = ngx_open_file(dir, NGX_FILE_RDWR, NGX_FILE_OPEN, 0);
 
@@ -839,6 +838,7 @@ ngx_http_dav_copy_dir_time(ngx_tree_ctx_t *ctx, ngx_str_t *path)
         ngx_log_error(NGX_LOG_ALERT, ctx->log, ngx_errno,
                       ngx_close_file_n " \"%s\" failed", dir);
     }
+    }
 
 failed: