Make it actually compile on Solaris.

llvm-svn: 17815
This commit is contained in:
Reid Spencer 2004-11-15 04:42:44 +00:00
parent 2638dac5e9
commit 8d0de0688c
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// Include the generic Unix implementation // Include the generic Unix implementation
#include "../Unix/Unix.cpp" #include "../Unix/TimeValue.cpp"
namespace llvm { namespace llvm {
using namespace sys; using namespace sys;

View File

@ -37,7 +37,7 @@ std::string TimeValue::toString() {
TimeValue TimeValue::now() { TimeValue TimeValue::now() {
struct timeval the_time; struct timeval the_time;
::timerclear(&the_time); timerclear(&the_time);
if (0 != ::gettimeofday(&the_time,0)) if (0 != ::gettimeofday(&the_time,0))
ThrowErrno("Couldn't obtain time of day"); ThrowErrno("Couldn't obtain time of day");