Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
March 27, 2012 12:38PM
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 */

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Anonymous User 987 March 27, 2012 12:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready