Skip to content

Commit c98b1f4

Browse files
committed
Fixes #11446. Add support for OpenBSD (clock_gettime).
1 parent 7dea453 commit c98b1f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/changelog.qbk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* `attribute_value::get_type()` now returns `typeindex::type_index` instead of `type_info_wrapper`. If the `attribute_value` object is empty, the returned `type_index` is default-constructed (i.e. refers to the `void` type). User-defined attribute value implementations should be similatly changed (the `attribute_value::impl::get_type()` virtual method now also returns `typeindex::type_index`).
2121
* `type_info_wrapper` component has been deprecated and will be removed in future releases. __boost_type_index__ is recommended as a replacement.
2222
* Removed the previously deprecated headers: `boost/log/utility/intrusive_ref_counter.hpp`, `boost/log/utility/explicit_operator_bool.hpp`, `boost/log/utility/empty_deleter.hpp`.
23+
* Added support for building the library for OpenBSD. ([ticket 11446])
2324

2425
[*Bug fixes:]
2526

src/timestamp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ BOOST_LOG_API get_tick_count_t get_tick_count = &get_tick_count_init;
203203
#endif // _WIN32_WINNT >= 0x0600
204204

205205
#elif (defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0) /* POSIX timers supported */ \
206-
|| defined(__GNU__) /* GNU Hurd does not support POSIX timers fully but does provide clock_gettime() */
206+
|| defined(__GNU__) || defined(__OpenBSD__) /* GNU Hurd and OpenBSD don't support POSIX timers fully but do provide clock_gettime() */
207207

208208
BOOST_LOG_API int64_t duration::milliseconds() const
209209
{

0 commit comments

Comments
 (0)