aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_time.h1
-rw-r--r--src/os/win32/ngx_time.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h
index 5da536a49..fac71adf4 100644
--- a/src/os/unix/ngx_time.h
+++ b/src/os/unix/ngx_time.h
@@ -5,6 +5,7 @@
#include <ngx_config.h>
typedef u_int ngx_msec_t;
+#define NGX_MAX_MSEC ~0
typedef struct tm ngx_tm_t;
diff --git a/src/os/win32/ngx_time.h b/src/os/win32/ngx_time.h
index 57bd421da..25eef9556 100644
--- a/src/os/win32/ngx_time.h
+++ b/src/os/win32/ngx_time.h
@@ -5,6 +5,8 @@
#include <windows.h>
typedef unsigned int ngx_msec_t;
+#define NGX_MAX_MSEC ~0
+
typedef SYSTEMTIME ngx_tm_t;
typedef FILETIME ngx_mtime_t;