diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 21:09:01 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 21:09:01 +0000 |
commit | 8445dc80318f0fcdf82f9fb385f105c053488670 (patch) | |
tree | 43cf34290f8d9412bfefc768549dabcb80ff4308 /libstdc++-v3/config | |
parent | 2fdeadc1651f094c6828103db71514fddfb971cf (diff) | |
download | gcc-8445dc80318f0fcdf82f9fb385f105c053488670.tar.gz |
Use CLOCK_HIGHRES on Solaris 9
* config/os/solaris/solaris2.9/os_defines.h [!CLOCK_MONOTONIC]
(CLOCK_MONOTONIC): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199317 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r-- | libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h b/libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h index 70586d1c1bd..ed30abbe244 100644 --- a/libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h +++ b/libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h @@ -35,5 +35,10 @@ #define __CORRECT_ISO_CPP_WCHAR_H_PROTO #endif +/* Solaris 9 uses the non-standard CLOCK_HIGHRES instead. */ +#ifndef CLOCK_MONOTONIC +#define CLOCK_MONOTONIC CLOCK_HIGHRES +#endif + #endif |