mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
always use time64 syscall first for clock_adjtime
clock_adjtime always returns the current clock setting in struct timex, so it's always possible that the time64 version is needed.
This commit is contained in:
parent
ef51b76222
commit
e0b17ef81e
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
|
||||||
{
|
{
|
||||||
int r = -ENOSYS;
|
int r = -ENOSYS;
|
||||||
#ifdef SYS_clock_adjtime64
|
#ifdef SYS_clock_adjtime64
|
||||||
if (SYS_clock_adjtime == SYS_clock_adjtime64 ||
|
if (1) {
|
||||||
(utx->modes & ADJ_SETOFFSET) && !IS32BIT(utx->time.tv_sec)) {
|
|
||||||
struct ktimex64 ktx = {
|
struct ktimex64 ktx = {
|
||||||
.modes = utx->modes,
|
.modes = utx->modes,
|
||||||
.offset = utx->offset,
|
.offset = utx->offset,
|
||||||
|
|
Loading…
Add table
Reference in a new issue