summaryrefslogtreecommitdiff
path: root/tests/condvar7.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-07-02 02:18:43 +0000
committerrpj <rpj>2011-07-02 02:18:43 +0000
commite516576e75527fb763e800e61dd024461141ec14 (patch)
treef24a77bca51ebf42b2198342033b705b7e660ce4 /tests/condvar7.c
parentc34bf0c659b945f0c012b1cdd7ea80de8292c608 (diff)
See the ChangeLogs
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;