diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-03-27 16:37:43 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-03-27 16:37:43 +0000 |
| commit | 7b2b17a6b3473e2d23e1ed55794fbaa416498738 (patch) | |
| tree | 0664a8e607a7b05e7a43aa83d29d79a81b0c2ea0 | |
| parent | e34ff16f67cd2a243726bc37441ba48ba3643e22 (diff) | |
| download | nginx-7b2b17a6b3473e2d23e1ed55794fbaa416498738.tar.gz nginx-7b2b17a6b3473e2d23e1ed55794fbaa416498738.tar.bz2 | |
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.
| -rw-r--r-- | src/os/unix/ngx_freebsd_config.h | 1 | ||||
| -rw-r--r-- | src/os/unix/ngx_posix_config.h | 1 | ||||
| -rw-r--r-- | src/os/unix/ngx_solaris_config.h | 1 |
3 files changed, 3 insertions, 0 deletions
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 <grp.h> #include <dirent.h> #include <glob.h> +#include <time.h> #include <sys/param.h> /* ALIGN() */ #include <sys/mount.h> /* 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 <grp.h> #include <dirent.h> #include <glob.h> +#include <time.h> #if (NGX_HAVE_SYS_PARAM_H) #include <sys/param.h> /* 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 <grp.h> #include <dirent.h> #include <glob.h> +#include <time.h> #include <sys/statvfs.h> /* statvfs() */ #include <sys/filio.h> /* FIONBIO */ |
