aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_times.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_times.c')
-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