cvs: /php4/ext/standard microtime.c

From: Date: Wed, 23 Feb 2000 17:40:31 +0000
Subject: cvs: /php4/ext/standard microtime.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-10749@lists.php.net to get a copy of this message
sas Wed Feb 23 09:40:31 2000 EDT Modified files: /php4/ext/standard microtime.c Log: Include <sys/types.h> and <sys/time.h> before <sys/resource.h> Index: php4/ext/standard/microtime.c diff -u php4/ext/standard/microtime.c:1.17 php4/ext/standard/microtime.c:1.18 --- php4/ext/standard/microtime.c:1.17 Wed Feb 23 07:44:02 2000 +++ php4/ext/standard/microtime.c Wed Feb 23 09:39:58 2000 @@ -16,31 +16,31 @@ +----------------------------------------------------------------------+ */ -/* $Id: microtime.c,v 1.17 2000/02/23 15:44:02 sas Exp $ */ +/* $Id: microtime.c,v 1.18 2000/02/23 17:39:58 sas Exp $ */ #include "php.h" -#include <stdlib.h> +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#ifdef PHP_WIN32 +#include "win32/time.h" +#else +#include <sys/time.h> +#endif +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif +#include <stdlib.h> #include <string.h> +#include <stdio.h> #include <errno.h> -#ifdef HAVE_SYS_RESOURCE_H -#include <sys/resource.h> -#endif #include "microtime.h" #include "snprintf.h" - -#include <stdio.h> -#ifdef HAVE_GETTIMEOFDAY -#ifdef PHP_WIN32 -#include "win32/time.h" -#else -#include <sys/time.h> -#endif -#endif #define NUL '\0' #define MICRO_IN_SEC 1000000.00

« previous php.version4 (#10749) next »