Make it actually compile on Solaris.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 15 Nov 2004 04:42:44 +0000 (04:42 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 15 Nov 2004 04:42:44 +0000 (04:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/SunOS/TimeValue.cpp
lib/System/Unix/TimeValue.cpp
lib/System/Unix/TimeValue.inc

index 7e47331b3f64680339ef25d49b1b8a06d098f72b..a4a238ba530f7a38a9cc6150e81a35619eda1d7b 100644 (file)
@@ -12,7 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 // Include the generic Unix implementation
-#include "../Unix/Unix.cpp"
+#include "../Unix/TimeValue.cpp"
 
 namespace llvm {
 using namespace sys;
index 6b476c86cad3003a8b5e21b346c34403f902cf92..d140af9add79b52e9ef98f1d0f357bb1e873ddb0 100644 (file)
@@ -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");
 
index 6b476c86cad3003a8b5e21b346c34403f902cf92..d140af9add79b52e9ef98f1d0f357bb1e873ddb0 100644 (file)
@@ -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");