Set errno in adjtime if newlib time funcs are not implemented

Other time functions (e.g. settimeofday) set errno to ENOSYS if
IMPL_NEWLIB_TIME_FUNCS is not set.
adjtime should probably do the same.
This commit is contained in:
jofrev 2022-12-08 22:29:01 +00:00 committed by KonstantinKondrashov
parent 11c59a2e69
commit f2c8de6b1b

View File

@ -139,6 +139,7 @@ int adjtime(const struct timeval *delta, struct timeval *outdelta)
}
return 0;
#else
errno = ENOSYS;
return -1;
#endif
}