aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/rwlock5_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthreads/tests/rwlock5_t.c')
-rw-r--r--pthreads/tests/rwlock5_t.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pthreads/tests/rwlock5_t.c b/pthreads/tests/rwlock5_t.c
index bf473a40e..4a94658fb 100644
--- a/pthreads/tests/rwlock5_t.c
+++ b/pthreads/tests/rwlock5_t.c
@@ -65,12 +65,12 @@ main()
{
pthread_t t;
struct timespec abstime = { 0, 0 };
- struct _timeb currSysTime;
+ PTW32_STRUCT_TIMEB currSysTime;
const DWORD NANOSEC_PER_MILLISEC = 1000000;
- _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;