diff options
| author | xoviat <xoviat@users.noreply.github.com> | 2017-10-27 15:22:44 -0500 |
|---|---|---|
| committer | Alexander Karatarakis <alex@karatarakis.com> | 2017-10-27 18:25:03 -0700 |
| commit | 7ed6466a9dce1d00769214ac8e9548977e835963 (patch) | |
| tree | c9b5338d401851c1ade3ab2bf6c485825ef808f2 | |
| parent | 2149fbdf596eb9aa427c4d72cf0e4185e8d64d47 (diff) | |
| download | vcpkg-7ed6466a9dce1d00769214ac8e9548977e835963.tar.gz vcpkg-7ed6466a9dce1d00769214ac8e9548977e835963.zip | |
[gettimeofday] use timespec from msvc
| -rw-r--r-- | ports/gettimeofday/gettimeofday.h | 7 |
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 */ |
