fix invalid free of duplocale object when malloc has been replaced
[musl] / src / linux / adjtimex.c
index 91de682..e9d727c 100644 (file)
@@ -1,7 +1,7 @@
 #include <sys/timex.h>
-#include "syscall.h"
+#include <time.h>
 
 int adjtimex(struct timex *tx)
 {
-       return syscall(SYS_adjtimex, tx);
+       return clock_adjtime(CLOCK_REALTIME, tx);
 }