about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-06-02 20:19:11 -0400
committerRich Felker <dalias@aerifal.cx>2020-06-02 20:19:11 -0400
commite0b17ef81eee66cafc22129de34b7efbfee57b31 (patch)
treeca132d5618e0d0d1fc84270729feb672927b7788 /src/linux
parentef51b762225e5e436f69bcbeb7ad04735da6dcce (diff)
downloadmusl-e0b17ef81eee66cafc22129de34b7efbfee57b31.tar.gz
musl-e0b17ef81eee66cafc22129de34b7efbfee57b31.tar.xz
musl-e0b17ef81eee66cafc22129de34b7efbfee57b31.zip
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.
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/clock_adjtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/clock_adjtime.c b/src/linux/clock_adjtime.c
index 52d3e0c4..94521bfc 100644
--- a/src/linux/clock_adjtime.c
+++ b/src/linux/clock_adjtime.c
@@ -38,8 +38,7 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
 {
 	int r = -ENOSYS;
 #ifdef SYS_clock_adjtime64
-	if (SYS_clock_adjtime == SYS_clock_adjtime64 ||
-	    (utx->modes & ADJ_SETOFFSET) && !IS32BIT(utx->time.tv_sec)) {
+	if (1) {
 		struct ktimex64 ktx = {
 			.modes = utx->modes,
 			.offset = utx->offset,