aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-10-27 15:22:44 -0500
committerAlexander Karatarakis <alex@karatarakis.com>2017-10-27 18:25:03 -0700
commit7ed6466a9dce1d00769214ac8e9548977e835963 (patch)
treec9b5338d401851c1ade3ab2bf6c485825ef808f2
parent2149fbdf596eb9aa427c4d72cf0e4185e8d64d47 (diff)
downloadvcpkg-7ed6466a9dce1d00769214ac8e9548977e835963.tar.gz
vcpkg-7ed6466a9dce1d00769214ac8e9548977e835963.zip
[gettimeofday] use timespec from msvc
-rw-r--r--ports/gettimeofday/gettimeofday.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ports/gettimeofday/gettimeofday.h b/ports/gettimeofday/gettimeofday.h
index 94c58ea73..227317524 100644
--- a/ports/gettimeofday/gettimeofday.h
+++ b/ports/gettimeofday/gettimeofday.h
@@ -4,12 +4,9 @@
#ifdef _MSC_VER
#include <winsock2.h>
-int gettimeofday(struct timeval * tp, struct timezone * tzp);
+#include <time.h>
-struct timespec {
- time_t tv_sec;
- time_t tv_nsec;
-};
+int gettimeofday(struct timeval * tp, struct timezone * tzp);
#endif /* _MSC_VER */