aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 20:33:12 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 20:33:12 +0000
commitf07eb2412e4a88287674c4b93ba0bafd60a398bb (patch)
tree437188860ac278d221f0ffc1443cfb02cb47f1b5
parenta5ce6cc258ab2f9349c22b64490415dd7fb27680 (diff)
downloadbusybox-w32-f07eb2412e4a88287674c4b93ba0bafd60a398bb.tar.gz
busybox-w32-f07eb2412e4a88287674c4b93ba0bafd60a398bb.tar.bz2
busybox-w32-f07eb2412e4a88287674c4b93ba0bafd60a398bb.zip
- provide fallback defines for non-linux
git-svn-id: svn://busybox.net/trunk/busybox@15196 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--miscutils/adjtimex.c14
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
50static const struct {int bit; const char *name;} statlist[] = { 64static const struct {int bit; const char *name;} statlist[] = {
51 { STA_PLL, "PLL" }, 65 { STA_PLL, "PLL" },
52 { STA_PPSFREQ, "PPSFREQ" }, 66 { STA_PPSFREQ, "PPSFREQ" },