mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 04:28:30 +00:00
Make it actually compile on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e660bd7296
commit
2e83ea5211
@ -12,7 +12,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Include the generic Unix implementation
|
||||
#include "../Unix/Unix.cpp"
|
||||
#include "../Unix/TimeValue.cpp"
|
||||
|
||||
namespace llvm {
|
||||
using namespace sys;
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user