diff options
-rw-r--r-- | miscutils/adjtimex.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index ec3e4fd62..4a242cfb7 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c | |||
@@ -44,9 +44,23 @@ | |||
44 | #include <sys/types.h> | 44 | #include <sys/types.h> |
45 | #include <stdlib.h> | 45 | #include <stdlib.h> |
46 | #include <unistd.h> | 46 | #include <unistd.h> |
47 | #include <sys/time.h> | ||
47 | #include <sys/timex.h> | 48 | #include <sys/timex.h> |
48 | #include "busybox.h" | 49 | #include "busybox.h" |
49 | 50 | ||
51 | #if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET | ||
52 | #define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET) | ||
53 | #endif | ||
54 | #if !defined ADJ_FREQUENCY && defined MOD_FREQUENCY | ||
55 | #define ADJ_FREQUENCY MOD_FREQUENCY | ||
56 | #endif | ||
57 | #if !defined ADJ_TIMECONST && defined MOD_TIMECONST | ||
58 | #define ADJ_TIMECONST MOD_TIMECONST | ||
59 | #endif | ||
60 | #if !defined ADJ_TICK && defined MOD_CLKB | ||
61 | #define ADJ_TICK MOD_CLKB | ||
62 | #endif | ||
63 | |||
50 | static const struct {int bit; const char *name;} statlist[] = { | 64 | static const struct {int bit; const char *name;} statlist[] = { |
51 | { STA_PLL, "PLL" }, | 65 | { STA_PLL, "PLL" }, |
52 | { STA_PPSFREQ, "PPSFREQ" }, | 66 | { STA_PPSFREQ, "PPSFREQ" }, |