Move portability stuff to platform.h, and clean up adjtimex.c a bit while
I'm in the area.
This commit is contained in:
parent
299a6b4d7b
commit
8fba99f35e
2 changed files with 20 additions and 58 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue