diff options
author | Sascha Schumann <sas@php.net> | 2000-02-23 17:39:58 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-02-23 17:39:58 +0000 |
commit | 027512320fef86baa4b2ec4ed50d279e705fdb9c (patch) | |
tree | f9dfea2345860732cab52185c65e955dab77c243 /ext/standard/microtime.c | |
parent | 7bc9ea2b9fcf810837bb2609e8051fc4fdf460ca (diff) | |
download | php-git-027512320fef86baa4b2ec4ed50d279e705fdb9c.tar.gz |
Include <sys/types.h> and <sys/time.h> before <sys/resource.h>
Diffstat (limited to 'ext/standard/microtime.c')
-rw-r--r-- | ext/standard/microtime.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index 9f9a565cdd..360a0780df 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -20,28 +20,28 @@ #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 |