[nginx] svn commit: r4558 - trunk/src/os/unix

mdounin at mdounin.ru mdounin at mdounin.ru
Tue Mar 27 16:37:43 UTC 2012


Author: mdounin
Date: 2012-03-27 16:37:43 +0000 (Tue, 27 Mar 2012)
New Revision: 4558
URL: http://trac.nginx.org/nginx/changeset/4558/nginx

Log:
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.


Modified:
   trunk/src/os/unix/ngx_freebsd_config.h
   trunk/src/os/unix/ngx_posix_config.h
   trunk/src/os/unix/ngx_solaris_config.h

Modified: trunk/src/os/unix/ngx_freebsd_config.h
===================================================================
--- trunk/src/os/unix/ngx_freebsd_config.h	2012-03-22 11:57:18 UTC (rev 4557)
+++ trunk/src/os/unix/ngx_freebsd_config.h	2012-03-27 16:37:43 UTC (rev 4558)
@@ -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() */
 

Modified: trunk/src/os/unix/ngx_posix_config.h
===================================================================
--- trunk/src/os/unix/ngx_posix_config.h	2012-03-22 11:57:18 UTC (rev 4557)
+++ trunk/src/os/unix/ngx_posix_config.h	2012-03-27 16:37:43 UTC (rev 4558)
@@ -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

Modified: trunk/src/os/unix/ngx_solaris_config.h
===================================================================
--- trunk/src/os/unix/ngx_solaris_config.h	2012-03-22 11:57:18 UTC (rev 4557)
+++ trunk/src/os/unix/ngx_solaris_config.h	2012-03-27 16:37:43 UTC (rev 4558)
@@ -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 */



More information about the nginx-devel mailing list