Skip to content
Browse files

fixed compatibility with nginx-1.2.7

  • Loading branch information...
1 parent f1d5c62 commit 637c61ca9b411ee99034aa095f618cbc533f110c @notz notz committed Feb 14, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 ngx_tcp_core_module.c
  2. +2 −2 ngx_tcp_log.c
View
4 ngx_tcp_core_module.c
@@ -793,7 +793,7 @@ ngx_tcp_log_set_access_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ssize_t size;
ngx_str_t *value, name;
ngx_tcp_log_t *log;
-#if (nginx_version) >= 1003010
+#if (nginx_version) >= 1003010 || (nginx_version) >= 1002007 && (nginx_version) < 1003000
ngx_tcp_log_buf_t *buffer;
#endif
@@ -847,7 +847,7 @@ ngx_tcp_log_set_access_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
-#if (nginx_version) >= 1003010
+#if (nginx_version) >= 1003010 || (nginx_version) >= 1002007 && (nginx_version) < 1003000
if (log->file->data) {
buffer = log->file->data;
View
4 ngx_tcp_log.c
@@ -20,7 +20,7 @@ ngx_tcp_log_handler(ngx_tcp_session_t *s)
ngx_connection_t *c;
ngx_tcp_log_t *log;
ngx_open_file_t *file;
- #if (nginx_version) >= 1003010
+#if (nginx_version) >= 1003010 || (nginx_version) >= 1002007 && (nginx_version) < 1003000
ngx_tcp_log_buf_t *buffer;
#endif
ngx_tcp_log_srv_conf_t *lscf;
@@ -66,7 +66,7 @@ ngx_tcp_log_handler(ngx_tcp_session_t *s)
file = log[l].file;
-#if (nginx_version) >= 1003010
+#if (nginx_version) >= 1003010 || (nginx_version) >= 1002007 && (nginx_version) < 1003000
if (file && file->data) {
buffer = file->data;

0 comments on commit 637c61c

Please sign in to comment.
Something went wrong with that request. Please try again.