mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
Make it actually compile on Solaris.
llvm-svn: 17815
This commit is contained in:
parent
2638dac5e9
commit
8d0de0688c
@ -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;
|
||||||
|
@ -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");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user