about summary refs log tree commit diff
path: root/src/linux/clock_adjtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/clock_adjtime.c')
-rw-r--r--src/linux/clock_adjtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linux/clock_adjtime.c b/src/linux/clock_adjtime.c
index 056ad6d3..7d6b0349 100644
--- a/src/linux/clock_adjtime.c
+++ b/src/linux/clock_adjtime.c
@@ -1,7 +1,9 @@
 #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);
 }