From: Maxim Dounin Date: Tue, 27 Mar 2012 16:37:43 +0000 (+0000) Subject: Added explicit include of time.h. X-Git-Tag: release-1.1.18~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=7b2b17a6b3473e2d23e1ed55794fbaa416498738;p=nginx.git Added explicit include of time.h. Most of the systems have it included due to namespace pollution, but relying on this is a bad idea. Explicit include is required for at least Debian GNU/Hurd. --- diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h index 460581a7b..5b3ff278c 100644 --- a/src/os/unix/ngx_freebsd_config.h +++ b/src/os/unix/ngx_freebsd_config.h @@ -23,6 +23,7 @@ #include #include #include +#include #include /* ALIGN() */ #include /* statfs() */ diff --git a/src/os/unix/ngx_posix_config.h b/src/os/unix/ngx_posix_config.h index a0a2c8ce8..4d432a7e3 100644 --- a/src/os/unix/ngx_posix_config.h +++ b/src/os/unix/ngx_posix_config.h @@ -45,6 +45,7 @@ #include #include #include +#include #if (NGX_HAVE_SYS_PARAM_H) #include /* statfs() */ #endif diff --git a/src/os/unix/ngx_solaris_config.h b/src/os/unix/ngx_solaris_config.h index 8a86fe610..e664ba826 100644 --- a/src/os/unix/ngx_solaris_config.h +++ b/src/os/unix/ngx_solaris_config.h @@ -29,6 +29,7 @@ #include #include #include +#include #include /* statvfs() */ #include /* FIONBIO */