mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 22:47:12 +00:00
parent
01d7c07920
commit
7d2f019681
@ -78,8 +78,10 @@ int clock_gettime(clockid_t clk_id, struct timespec *ts)
|
||||
if (!_current_real_time_ptr)
|
||||
throw Missing_call_of_init_time();
|
||||
|
||||
if (!_current_real_time_ptr->has_real_time())
|
||||
if (!_current_real_time_ptr->has_real_time()) {
|
||||
warning("clock_gettime(): missing real-time clock");
|
||||
return Errno(EINVAL);
|
||||
}
|
||||
|
||||
*ts = _current_real_time_ptr->current_real_time();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user