summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2010-11-26 10:30:19 +0000
committerNoel Power <noel.power@novell.com>2010-11-26 10:30:19 +0000
commite4f7a79c4bea3b735705bfc0531f19a89deaf682 (patch)
tree3cfc05be7ac02c96785cbf8efdab78ca7c72c47c
parent4e46f657a03716afb5d295bbb5d70b84cbbf06cc (diff)
fix failing build on windows, use osl_getSystemTime instead of gettimeofday
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index d6232218c..973b85731 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -172,7 +172,7 @@ using ::com::sun::star::uno::UNO_QUERY;
#include <stdio.h>
#include <string>
-#include <sys/time.h>
+#include <osl/time.h>
namespace {
@@ -201,9 +201,8 @@ public:
private:
double getTime() const
{
- timeval tv;
- gettimeofday(&tv, NULL);
- return tv.tv_sec + tv.tv_usec / 1000000.0;
+ TimeValue tv; osl_getSystemTime(&tv);
+ return tv.Seconds + tv.Nanosec / 1000000000.0;
}
::std::string msMsg;