From c192f5eb557ecea1d654ac753998a16c36551e81 Mon Sep 17 00:00:00 2001 From: malaterre Date: Sat, 22 Jan 2005 22:50:12 +0000 Subject: [PATCH] COMP: MacOSX does not respect opengroup definition of timeval which has a time_t tv_sec, but rather define tv_sec as a long --- src/gdcmUtil.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 3ec56873..9c105780 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/22 01:40:41 $ - Version: $Revision: 1.118 $ + Date: $Date: 2005/01/22 22:50:12 $ + Version: $Revision: 1.119 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -295,7 +295,7 @@ std::string Util::GetCurrentDateTime() #else struct timeval tv; gettimeofday (&tv, NULL); - timep = &tv.tv_sec; + timep = (time_t*)(&tv.tv_sec); // Compute milliseconds from microseconds. milliseconds = tv.tv_usec / 1000; #endif -- 2.48.1