summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-19 19:03:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-19 19:03:05 (GMT)
commit2576405f10bb1194c302b2582428451d6f52d998 (patch)
tree2a3e8c4cd2f182665d4f48066e8cd089da960cff /win
parent19b0b6744618b77b1269b2e52cbccd15fa296a7a (diff)
parent0381a0636d9cf0732c403ff31d13a8585fffdbfd (diff)
downloadtcl-2576405f10bb1194c302b2582428451d6f52d998.zip
tcl-2576405f10bb1194c302b2582428451d6f52d998.tar.gz
tcl-2576405f10bb1194c302b2582428451d6f52d998.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 f34884a..0163723 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -309,7 +309,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. */
@@ -475,7 +475,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;
}