From 8cea10d6dc333341aea30db5eb116415c09d0553 Mon Sep 17 00:00:00 2001 From: skrll Date: Sun, 14 Jan 2001 12:18:30 +0000 Subject: Use gettimeofday instead of ftime. --- textproc/xerces-c/files/Makefile.in | 1 - textproc/xerces-c/files/NetBSDPlatformUtils.cpp | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'textproc/xerces-c/files') diff --git a/textproc/xerces-c/files/Makefile.in b/textproc/xerces-c/files/Makefile.in index c1bd3129ce4..8184d97c8cf 100644 --- a/textproc/xerces-c/files/Makefile.in +++ b/textproc/xerces-c/files/Makefile.in @@ -79,4 +79,3 @@ CPP_OBJECTS = NetBSDPlatformUtils.$(TO) include ../../Makefile.util.submodule -CPP_OBJECTS: NetBSDPlatformUtils.cpp ${CPP_PUBHEADERS} diff --git a/textproc/xerces-c/files/NetBSDPlatformUtils.cpp b/textproc/xerces-c/files/NetBSDPlatformUtils.cpp index 34b74dcb11a..8da8f3a17bf 100644 --- a/textproc/xerces-c/files/NetBSDPlatformUtils.cpp +++ b/textproc/xerces-c/files/NetBSDPlatformUtils.cpp @@ -77,7 +77,7 @@ #include #include #include -#include +#include #include #include /* for strcasecmp & strncasecmp */ #include /* for win_t */ @@ -450,10 +450,11 @@ void XMLPlatformUtils::resetFile(FileHandle theFile) unsigned long XMLPlatformUtils::getCurrentMillis() { - timeb aTime; - ftime(&aTime); - return (unsigned long)(aTime.time*1000 + aTime.millitm); + struct timeval t; + struct timezone tz; + gettimeofday(&t, &tz); + return (unsigned long)(t.tv_sec*1000 + t.tv_usec); } XMLCh* XMLPlatformUtils::getFullPath(const XMLCh* const srcPath) -- cgit v1.2.3