mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
time-util: also use 32bit hack on EOVERFLOW
As per https://github.com/systemd/systemd/issues/14362#issuecomment-566722686 let's also prepare for EOVERFLOW.
This commit is contained in:
parent
17ef83b231
commit
9e7c8f64cf
@ -1514,7 +1514,7 @@ int time_change_fd(void) {
|
||||
* See: https://github.com/systemd/systemd/issues/14362 */
|
||||
|
||||
#if SIZEOF_TIME_T == 8 && ULONG_MAX < UINT64_MAX
|
||||
if (ERRNO_IS_NOT_SUPPORTED(errno)) {
|
||||
if (ERRNO_IS_NOT_SUPPORTED(errno) || errno == EOVERFLOW) {
|
||||
static const struct itimerspec its32 = {
|
||||
.it_value.tv_sec = INT32_MAX,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user