diff options
Diffstat (limited to 'linden/indra/llcommon/llfasttimer.cpp')
-rw-r--r-- | linden/indra/llcommon/llfasttimer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llcommon/llfasttimer.cpp b/linden/indra/llcommon/llfasttimer.cpp index 2b1d58f..6c0f9ac 100644 --- a/linden/indra/llcommon/llfasttimer.cpp +++ b/linden/indra/llcommon/llfasttimer.cpp | |||
@@ -33,7 +33,7 @@ | |||
33 | #if LL_WINDOWS | 33 | #if LL_WINDOWS |
34 | #include <time.h> | 34 | #include <time.h> |
35 | 35 | ||
36 | #elif LL_LINUX | 36 | #elif LL_LINUX || LL_SOLARIS |
37 | #include <time.h> | 37 | #include <time.h> |
38 | #include <sys/time.h> | 38 | #include <sys/time.h> |
39 | #include <sched.h> | 39 | #include <sched.h> |
@@ -91,7 +91,7 @@ U64 get_cpu_clock_count() | |||
91 | #endif // LL_WINDOWS | 91 | #endif // LL_WINDOWS |
92 | 92 | ||
93 | 93 | ||
94 | #if LL_LINUX | 94 | #if (LL_LINUX || LL_SOLARIS) && (defined(__i386__) || defined(__amd64__)) |
95 | U64 get_cpu_clock_count() | 95 | U64 get_cpu_clock_count() |
96 | { | 96 | { |
97 | U64 x; | 97 | U64 x; |
@@ -100,7 +100,7 @@ U64 get_cpu_clock_count() | |||
100 | } | 100 | } |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | #if LL_DARWIN | 103 | #if LL_DARWIN || (LL_SOLARIS && defined(__sparc__)) |
104 | // | 104 | // |
105 | // Mac implementation of CPU clock | 105 | // Mac implementation of CPU clock |
106 | // | 106 | // |
@@ -115,7 +115,7 @@ U64 get_cpu_clock_count() | |||
115 | ////////////////////////////////////////////////////////////////////////////// | 115 | ////////////////////////////////////////////////////////////////////////////// |
116 | 116 | ||
117 | //static | 117 | //static |
118 | #if LL_LINUX || LL_DARWIN | 118 | #if LL_LINUX || LL_DARWIN || LL_SOLARIS |
119 | // Both Linux and Mac use gettimeofday for accurate time | 119 | // Both Linux and Mac use gettimeofday for accurate time |
120 | U64 LLFastTimer::countsPerSecond() | 120 | U64 LLFastTimer::countsPerSecond() |
121 | { | 121 | { |