diff src/core/ngx_core.h @ 106:45f7329b4bd0 NGINX_0_3_0

nginx 0.3.0 *) Change: the 10-days live time limit of worker process was eliminated. The limit was introduced because of millisecond timers overflow.
author Igor Sysoev <http://sysoev.ru>
date Fri, 07 Oct 2005 00:00:00 +0400
parents ca4f70b3ccc6
children cf3d6edb3ad6
line wrap: on
line diff
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -36,6 +36,7 @@ typedef void (*ngx_connection_handler_pt
 
 
 #include <ngx_atomic.h>
+#include <ngx_rbtree.h>
 #include <ngx_time.h>
 #include <ngx_socket.h>
 #include <ngx_errno.h>
@@ -59,7 +60,6 @@ typedef void (*ngx_connection_handler_pt
 #if (NGX_PCRE)
 #include <ngx_regex.h>
 #endif
-#include <ngx_rbtree.h>
 #include <ngx_radix_tree.h>
 #include <ngx_times.h>
 #include <ngx_inet.h>
@@ -81,4 +81,7 @@ typedef void (*ngx_connection_handler_pt
 #define CRLF   "\x0d\x0a"
 
 
+#define ngx_abs(value)   (((value) >= 0) ? (value) : - (value))
+
+
 #endif /* _NGX_CORE_H_INCLUDED_ */