diff options
Diffstat (limited to 'src/core/ngx_times.c')
-rw-r--r-- | src/core/ngx_times.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c index 5ca235ccf..234a8aead 100644 --- a/src/core/ngx_times.c +++ b/src/core/ngx_times.c @@ -41,7 +41,7 @@ static ngx_mutex_t *ngx_time_mutex; #endif -#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) volatile time_t *ngx_cached_time; static time_t cached_time[NGX_TIME_SLOTS]; @@ -84,7 +84,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 (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) ngx_cached_time = &cached_time[0]; #endif @@ -137,7 +137,7 @@ void ngx_time_update(time_t s) slot++; } -#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) ngx_cached_time = &cached_time[slot]; #endif |