aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/condvar2.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/tests/condvar2.c')
-rw-r--r--pthreads/tests/condvar2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pthreads/tests/condvar2.c b/pthreads/tests/condvar2.c
index 33f1d3f1d..6e2fa52d2 100644
--- a/pthreads/tests/condvar2.c
+++ b/pthreads/tests/condvar2.c
@@ -87,7 +87,7 @@ int
main()
{
struct timespec abstime = { 0, 0 };
- struct _timeb currSysTime;
+ PTW32_STRUCT_TIMEB currSysTime;
const DWORD NANOSEC_PER_MILLISEC = 1000000;
assert(pthread_cond_init(&cv, NULL) == 0);
@@ -97,9 +97,9 @@ main()
assert(pthread_mutex_lock(&mutex) == 0);
/* get current system time */
- _ftime(&currSysTime);
+ PTW32_FTIME(&currSysTime);
- abstime.tv_sec = currSysTime.time;
+ abstime.tv_sec = (long)currSysTime.time;
abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;
abstime.tv_sec += 1;