summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorRob Landley2006-05-27 22:08:01 +0000
committerRob Landley2006-05-27 22:08:01 +0000
commit8fba99f35e46d234b47d652225bb80846cae369c (patch)
treeeaeb2682d47a18b2e83687746453c3718fb49b93 /include/platform.h
parent299a6b4d7bf40c30e4a52ee8311c17ffd42b3035 (diff)
downloadbusybox-8fba99f35e46d234b47d652225bb80846cae369c.zip
busybox-8fba99f35e46d234b47d652225bb80846cae369c.tar.gz
Move portability stuff to platform.h, and clean up adjtimex.c a bit while
I'm in the area.
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 23adc7b..b77d815 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -210,4 +210,21 @@ typedef unsigned long long int uintmax_t;
#else
#define bb_setpgrp setpgrp()
#endif
+
+// I have no idea what platform this was for since aldot didn't say, but
+// it belongs here since Linux doesn't need it.
+
+#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
+
#endif /* platform.h */