Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-21 19:47:05 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-09-21 19:47:05 +0400
commit4624ae7d0831f836529acb57a8c3ce6199e67d6e (patch)
tree6e91ac82ffc27438d1db013c45815fea5e759ef7 /src/core
parentdd888c4caadfbd94c595e6e39bdb361de82dda9f (diff)
nginx-0.0.11-2004-09-21-19:47:05 import
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_times.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c
index 2c9985f20..b6d5a3f1d 100644
--- a/src/core/ngx_times.c
+++ b/src/core/ngx_times.c
@@ -79,7 +79,7 @@ void ngx_time_init()
ngx_cached_http_time.len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1;
ngx_cached_http_log_time.len = sizeof("28/Sep/1970:12:00:00 +0600") - 1;
-#if (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)
+#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE))
ngx_cached_time = &cached_time[0];
#endif
@@ -132,7 +132,7 @@ void ngx_time_update(time_t s)
slot++;
}
-#if (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)
+#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE))
ngx_cached_time = &cached_time[slot];
#endif