summaryrefslogtreecommitdiff
path: root/tests/condvar7.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar7.c')
-rw-r--r--tests/condvar7.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/condvar7.c b/tests/condvar7.c
index 3975e2c..0647e7d 100644
--- a/tests/condvar7.c
+++ b/tests/condvar7.c
@@ -154,11 +154,7 @@ main()
int i;
pthread_t t[NUMTHREADS + 1];
-#if (defined(__MINGW64__) || defined(__MINGW32__)) && __MSVCRT_VERSION__ >= 0x0601
- struct __timeb64 currSysTime;
-#else
- struct _timeb currSysTime;
-#endif
+ PTW32_STRUCT_TIMEB currSysTime;
const DWORD NANOSEC_PER_MILLISEC = 1000000;
cvthing.shared = 0;
@@ -173,7 +169,7 @@ main()
PTW32_FTIME(&currSysTime);
- abstime.tv_sec = currSysTime.time;
+ abstime.tv_sec = (time_t)currSysTime.time;
abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
abstime.tv_sec += 10;