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.
This commit is contained in:
Maxim Dounin 2012-03-27 16:37:43 +00:00
parent e34ff16f67
commit 7b2b17a6b3
3 changed files with 3 additions and 0 deletions

View File

@ -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() */

View File

@ -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

View File

@ -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 */