diff auto/unix @ 6082:51d4fde64bca stable-1.6

Core: expose maximum values of time_t and ngx_int_t. These are needed to detect overflows.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 17 Mar 2015 00:24:34 +0300
parents 692afcea9d0d
children
line wrap: on
line diff
--- a/auto/unix
+++ b/auto/unix
@@ -489,6 +489,7 @@ ngx_param=NGX_OFF_T_LEN; ngx_value=$ngx_
 ngx_type="time_t"; . auto/types/sizeof
 ngx_param=NGX_TIME_T_SIZE; ngx_value=$ngx_size; . auto/types/value
 ngx_param=NGX_TIME_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
+ngx_param=NGX_MAX_TIME_T_VALUE; ngx_value=$ngx_max_value; . auto/types/value
 
 
 # syscalls, libc calls and some features