From b21d23bd465b2f8a859183496c55e3613cd9cdda Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 26 May 2006 20:33:12 +0000 Subject: - provide fallback defines for non-linux --- miscutils/adjtimex.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index ec3e4fd..4a242cf 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -44,9 +44,23 @@ #include #include #include +#include #include #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" }, -- cgit v1.1