diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-27 00:33:12 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-27 00:33:12 +0400 |
commit | b21d23bd465b2f8a859183496c55e3613cd9cdda (patch) | |
tree | 437188860ac278d221f0ffc1443cfb02cb47f1b5 /miscutils/adjtimex.c | |
parent | 01d23ade577b94a1ab1fde54f69a3ce5f7399f3c (diff) |
- provide fallback defines for non-linux
Diffstat (limited to 'miscutils/adjtimex.c')
-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 @@ #include <sys/types.h> #include <stdlib.h> #include <unistd.h> +#include <sys/time.h> #include <sys/timex.h> #include "busybox.h" +#if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET +#define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET) +#endif +#if !defined ADJ_FREQUENCY && defined MOD_FREQUENCY +#define ADJ_FREQUENCY MOD_FREQUENCY +#endif +#if !defined ADJ_TIMECONST && defined MOD_TIMECONST +#define ADJ_TIMECONST MOD_TIMECONST +#endif +#if !defined ADJ_TICK && defined MOD_CLKB +#define ADJ_TICK MOD_CLKB +#endif + static const struct {int bit; const char *name;} statlist[] = { { STA_PLL, "PLL" }, { STA_PPSFREQ, "PPSFREQ" }, |