Mercurial > hg > nginx
changeset 1803:7405719e4848
condition declarations inside blocks update missed in r1705
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 29 Dec 2007 13:55:10 +0000 |
parents | 7c832e132dbc |
children | d457a1576532 |
files | src/http/modules/ngx_http_dav_module.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_dav_module.c Sat Dec 29 08:38:42 2007 +0000 +++ b/src/http/modules/ngx_http_dav_module.c Sat Dec 29 13:55:10 2007 +0000 @@ -799,9 +799,6 @@ 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_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_log_error(NGX_LOG_ALERT, ctx->log, ngx_errno, ngx_close_file_n " \"%s\" failed", dir); } + } failed: