summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/microtime.c26
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