]> granicus.if.org Git - php/commitdiff
Include <sys/types.h> and <sys/time.h> before <sys/resource.h>
authorSascha Schumann <sas@php.net>
Wed, 23 Feb 2000 17:39:58 +0000 (17:39 +0000)
committerSascha Schumann <sas@php.net>
Wed, 23 Feb 2000 17:39:58 +0000 (17:39 +0000)
ext/standard/microtime.c

index 9f9a565cdd6a1c3c6390821d41433ad24c12f188..360a0780dfc1a1d333cd19bc4d74de6432883d3b 100644 (file)
 
 #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