diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2013-05-24 21:09:01 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2013-05-24 21:09:01 +0000 |
commit | 57d6e1b377c45d0658723e81b6860d68f2197505 (patch) | |
tree | 43cf34290f8d9412bfefc768549dabcb80ff4308 | |
parent | cb5cb19486bbcd3669e4332b48e28e8d7b9e9218 (diff) | |
download | gcc-57d6e1b377c45d0658723e81b6860d68f2197505.zip gcc-57d6e1b377c45d0658723e81b6860d68f2197505.tar.gz gcc-57d6e1b377c45d0658723e81b6860d68f2197505.tar.bz2 |
Use CLOCK_HIGHRES on Solaris 9
* config/os/solaris/solaris2.9/os_defines.h [!CLOCK_MONOTONIC]
(CLOCK_MONOTONIC): Define.
From-SVN: r199317
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/config/os/solaris/solaris2.9/os_defines.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 43ecc7b..9c74e59 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * config/os/solaris/solaris2.9/os_defines.h [!CLOCK_MONOTONIC] + (CLOCK_MONOTONIC): Define. + 2013-05-24 Paolo Carlini <paolo.carlini@oracle.com> * include/ext/type_traits.h (__is_null_pointer): Add std::nullptr_t 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 70586d1..ed30abb 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 |