From 2e83ea5211ce7ce404b9cf8c625ec289c16ea1b5 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 15 Nov 2004 04:42:44 +0000 Subject: [PATCH] Make it actually compile on Solaris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17815 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/SunOS/TimeValue.cpp | 2 +- lib/System/Unix/TimeValue.cpp | 2 +- lib/System/Unix/TimeValue.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/System/SunOS/TimeValue.cpp b/lib/System/SunOS/TimeValue.cpp index 7e47331b3f6..a4a238ba530 100644 --- a/lib/System/SunOS/TimeValue.cpp +++ b/lib/System/SunOS/TimeValue.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// // Include the generic Unix implementation -#include "../Unix/Unix.cpp" +#include "../Unix/TimeValue.cpp" namespace llvm { using namespace sys; diff --git a/lib/System/Unix/TimeValue.cpp b/lib/System/Unix/TimeValue.cpp index 6b476c86cad..d140af9add7 100644 --- a/lib/System/Unix/TimeValue.cpp +++ b/lib/System/Unix/TimeValue.cpp @@ -37,7 +37,7 @@ std::string TimeValue::toString() { TimeValue TimeValue::now() { struct timeval the_time; - ::timerclear(&the_time); + timerclear(&the_time); if (0 != ::gettimeofday(&the_time,0)) ThrowErrno("Couldn't obtain time of day"); diff --git a/lib/System/Unix/TimeValue.inc b/lib/System/Unix/TimeValue.inc index 6b476c86cad..d140af9add7 100644 --- a/lib/System/Unix/TimeValue.inc +++ b/lib/System/Unix/TimeValue.inc @@ -37,7 +37,7 @@ std::string TimeValue::toString() { TimeValue TimeValue::now() { struct timeval the_time; - ::timerclear(&the_time); + timerclear(&the_time); if (0 != ::gettimeofday(&the_time,0)) ThrowErrno("Couldn't obtain time of day"); -- 2.34.1