diff src/os/unix/ngx_posix_config.h @ 4557:b13419459a50

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Mar 2012 16:37:43 +0000
parents d620f497c50f
children 489839d07b38
line wrap: on
line diff
--- 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