summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-27 22:08:01 +0000
committerRob Landley <rob@landley.net>2006-05-27 22:08:01 +0000
commit8fba99f35e46d234b47d652225bb80846cae369c (patch)
treeeaeb2682d47a18b2e83687746453c3718fb49b93 /include
parent299a6b4d7bf40c30e4a52ee8311c17ffd42b3035 (diff)
downloadbusybox-w32-8fba99f35e46d234b47d652225bb80846cae369c.tar.gz
busybox-w32-8fba99f35e46d234b47d652225bb80846cae369c.tar.bz2
busybox-w32-8fba99f35e46d234b47d652225bb80846cae369c.zip
Move portability stuff to platform.h, and clean up adjtimex.c a bit while
I'm in the area.
Diffstat (limited to 'include')
-rw-r--r--include/platform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 23adc7b47..b77d815f8 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -210,4 +210,21 @@ typedef unsigned long long int uintmax_t;
210#else 210#else
211#define bb_setpgrp setpgrp() 211#define bb_setpgrp setpgrp()
212#endif 212#endif
213
214// I have no idea what platform this was for since aldot didn't say, but
215// it belongs here since Linux doesn't need it.
216
217#if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET
218#define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET)
219#endif
220#if !defined ADJ_FREQUENCY && defined MOD_FREQUENCY
221#define ADJ_FREQUENCY MOD_FREQUENCY
222#endif
223#if !defined ADJ_TIMECONST && defined MOD_TIMECONST
224#define ADJ_TIMECONST MOD_TIMECONST
225#endif
226#if !defined ADJ_TICK && defined MOD_CLKB
227#define ADJ_TICK MOD_CLKB
228#endif
229
213#endif /* platform.h */ 230#endif /* platform.h */