semtimedop: add time64 syscall support, decouple 32-bit time_t
[musl] / src / linux / clock_adjtime.c
index 1fc9bef..7d6b034 100644 (file)
@@ -1,9 +1,9 @@
-#define _GNU_SOURCE
-#include <time.h>
 #include <sys/timex.h>
+#include <time.h>
 #include "syscall.h"
 
 int clock_adjtime (clockid_t clock_id, struct timex *utx)
 {
+       if (clock_id==CLOCK_REALTIME) return syscall(SYS_adjtimex, utx);
        return syscall(SYS_clock_adjtime, clock_id, utx);
 }