svn commit: trunk/busybox/miscutils
aldot at busybox.net
aldot at busybox.net
Fri May 26 20:33:15 UTC 2006
Author: aldot
Date: 2006-05-26 13:33:12 -0700 (Fri, 26 May 2006)
New Revision: 15196
Log:
- provide fallback defines for non-linux
Modified:
trunk/busybox/miscutils/adjtimex.c
Changeset:
Modified: trunk/busybox/miscutils/adjtimex.c
===================================================================
--- trunk/busybox/miscutils/adjtimex.c 2006-05-26 20:19:22 UTC (rev 15195)
+++ trunk/busybox/miscutils/adjtimex.c 2006-05-26 20:33:12 UTC (rev 15196)
@@ -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" },
More information about the busybox-cvs
mailing list