summaryrefslogtreecommitdiff
path: root/miscutils/adjtimex.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-26 20:33:12 +0000
committerBernhard Reutner-Fischer2006-05-26 20:33:12 +0000
commitb21d23bd465b2f8a859183496c55e3613cd9cdda (patch)
tree437188860ac278d221f0ffc1443cfb02cb47f1b5 /miscutils/adjtimex.c
parent01d23ade577b94a1ab1fde54f69a3ce5f7399f3c (diff)
downloadbusybox-b21d23bd465b2f8a859183496c55e3613cd9cdda.zip
busybox-b21d23bd465b2f8a859183496c55e3613cd9cdda.tar.gz
- provide fallback defines for non-linux
Diffstat (limited to 'miscutils/adjtimex.c')
-rw-r--r--miscutils/adjtimex.c14
1 files changed, 14 insertions, 0 deletions
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 <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" },