summaryrefslogtreecommitdiff
path: root/src/node_report.h
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-03-31 10:33:23 -0400
committercjihrig <cjihrig@gmail.com>2019-04-22 17:10:57 -0400
commitaf35d4044fd32922ce784afa6da98520ffbbf872 (patch)
tree471a4d4da7ee5008ef82b20dad982f939dff31da /src/node_report.h
parent90cf2d5f008b59ee0cbe881b1835eaf6a6a77fe2 (diff)
downloadandroid-node-v8-af35d4044fd32922ce784afa6da98520ffbbf872.tar.gz
android-node-v8-af35d4044fd32922ce784afa6da98520ffbbf872.tar.bz2
android-node-v8-af35d4044fd32922ce784afa6da98520ffbbf872.zip
report: use uv_gettimeofday for dumpEventTimeStamp
dumpEventTimeStamp was not implemented on Windows, and did not include any error checking. This commit adds Windows support and error checking. PR-URL: https://github.com/nodejs/node/pull/27029 Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/node_report.h')
-rw-r--r--src/node_report.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_report.h b/src/node_report.h
index 5ae041b9fe..27ace3c8ef 100644
--- a/src/node_report.h
+++ b/src/node_report.h
@@ -5,10 +5,7 @@
#include "uv.h"
#include "v8.h"
-#ifdef _WIN32
-#include <time.h>
-#else
-#include <sys/time.h>
+#ifndef _WIN32
#include <sys/types.h>
#include <unistd.h>
#endif