summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-19 19:09:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-19 19:09:25 (GMT)
commite2c9d2102f48da3b1ef994f059076ffbbb3d0781 (patch)
tree6bcf5cdf7e25bced094c410137eb13d264f9f63f /win
parent4e4b54aad334a0c55a28cbc05206ded0cebb9dca (diff)
parent2576405f10bb1194c302b2582428451d6f52d998 (diff)
downloadtcl-e2c9d2102f48da3b1ef994f059076ffbbb3d0781.zip
tcl-e2c9d2102f48da3b1ef994f059076ffbbb3d0781.tar.gz
tcl-e2c9d2102f48da3b1ef994f059076ffbbb3d0781.tar.bz2
Fix for FreeBSD, and remove support for older FreeBSD versions. Patch by Pietro Cerutti
Diffstat (limited to 'win')
-rw-r--r--win/tclWinTime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index daa229d..7045c72 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -280,7 +280,7 @@ NativeGetTime(
Tcl_Time *timePtr,
ClientData clientData)
{
- struct timeb t;
+ struct _timeb t;
int useFtime = 1; /* Flag == TRUE if we need to fall back on
* ftime rather than using the perf counter. */
@@ -446,7 +446,7 @@ NativeGetTime(
* High resolution timer is not available. Just use ftime.
*/
- ftime(&t);
+ _ftime(&t);
timePtr->sec = (long)t.time;
timePtr->usec = t.millitm * 1000;
}